summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-19 15:49:16 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-19 15:49:16 -0500
commit09a28f318ab5428345367aa8317960e41c822902 (patch)
treeea4cd8224fb0429fa8fd3fe73925a05ce065aa19
parentdde4910e5f25d54add887ae4d482fb52dfd0739d (diff)
downloaddimension-09a28f318ab5428345367aa8317960e41c822902.tar.xz
Fix unrecognised character lexing error.
-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);
}