Permalink
Browse files

CCompiler: Fixed escaping of UTF8 characters.

  • Loading branch information...
1 parent adc3944 commit d9605b0482ea27a86aea50f12d060c8832075316 @stevefolta committed Jul 16, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 sources/CCompiler/main
@@ -256,7 +256,7 @@ escape-string-for-c: string
escape-string = c char-string
else
escape-string = "x"
- digit = c >> 4
+ digit = (c >> 4) & 0x0F
if digit > 9
escape-string += (digit - 0x0A + `A`) char-string
else

0 comments on commit d9605b0

Please sign in to comment.