summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dimension/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index 3c23d78..77320c5 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -287,7 +287,7 @@ unsigned long wchar;
. {
dmnsn_diagnostic(filename, yylineno, yycolumn,
"Unrecognized character '%c' (0x%X)",
- (int)*yytext, (unsigned int)*yytext);
+ (int)*yytext, (unsigned int)(unsigned char)*yytext);
RETURN_TOKEN(DMNSN_T_LEX_ERROR);
}