]> granicus.if.org Git - re2c/commitdiff
'--skeleton': fixed codegen error with '-b' (don't forget last bitmap element).
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 30 Sep 2015 15:12:27 +0000 (16:12 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 30 Sep 2015 15:12:27 +0000 (16:12 +0100)
re2c/src/codegen/skeleton/generate_code.cc

index 8866cae4330cd0876861be3172b1448fc4bdbc14..5484e0b32803847e4d8cb72c29d53ae08920be32 100644 (file)
@@ -223,7 +223,7 @@ void Skeleton::emit_start
        o << "\n";
        if (opts->bFlag && BitMap::first)
        {
-               BitMap::gen (o, 2, 0, std::min (0xFFu, opts->encoding.nCodeUnits ()));
+               BitMap::gen (o, 2, 0, std::min (0x100u, opts->encoding.nCodeUnits ()));
        }
        o << "\n";
 }