]> granicus.if.org Git - re2c/commit
Zero-extend code units when casing them from 'signed char' to 'uint32_t'.
authorUlya Trofimovich <skvadrik@gmail.com>
Thu, 20 Aug 2015 12:24:42 +0000 (13:24 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Thu, 20 Aug 2015 12:24:42 +0000 (13:24 +0100)
commitc73800f114cf34f4db5650a8eae1636c21645375
treec3fddc7931309b57794a7a91e1363d5c332d15f5
parente8abc1ef0595acd0f80e042f3cbd5e69f0f01d93
Zero-extend code units when casing them from 'signed char' to 'uint32_t'.

The problem starts with lexer: it should operate on unsigned chars
(as re2c wants). Then these casts won't be needed at all. Mixing
signed and unsigned chars is bad and lexer should be rewritten to
use unsigned chars.
re2c/bootstrap/src/parse/scanner_lex.cc
re2c/src/parse/scanner_lex.re
re2c/src/parse/unescape.cc