Fix wchar_t format string types

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2012-02-17 20:17:58 -05:00
parent af649a035c
commit 32ff4af359
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -187,9 +187,9 @@ int vt_parser( int fd, Parser::UTF8Parser *parser )
if ( act->char_present ) {
if ( iswprint( act->ch ) ) {
printf( "%s(0x%02x=%lc) ", act->name().c_str(), act->ch, act->ch );
printf( "%s(0x%02x=%lc) ", act->name().c_str(), (unsigned int)act->ch, act->ch );
} else {
printf( "%s(0x%02x) ", act->name().c_str(), act->ch );
printf( "%s(0x%02x) ", act->name().c_str(), (unsigned int)act->ch );
}
} else {
printf( "[%s] ", act->name().c_str() );