Commit bc5a21bf authored by David Renshaw's avatar David Renshaw

fix bug in parsing of non-ascii constants

parent 1b1407c0
...@@ -748,6 +748,8 @@ const embeddedData :Data = embed "testdata/packed"; ...@@ -748,6 +748,8 @@ const embeddedData :Data = embed "testdata/packed";
const embeddedText :Text = embed "testdata/short.txt"; const embeddedText :Text = embed "testdata/short.txt";
const embeddedStruct :TestAllTypes = embed "testdata/binary"; const embeddedStruct :TestAllTypes = embed "testdata/binary";
const nonAsciiText :Text = "♫ é ✓";
struct TestAnyPointerConstants { struct TestAnyPointerConstants {
anyKindAsStruct @0 :AnyPointer; anyKindAsStruct @0 :AnyPointer;
anyStructAsStruct @1 :AnyStruct; anyStructAsStruct @1 :AnyStruct;
......
...@@ -107,7 +107,7 @@ public: ...@@ -107,7 +107,7 @@ public:
return CharGroup_(~bits[0], ~bits[1], ~bits[2], ~bits[3]); return CharGroup_(~bits[0], ~bits[1], ~bits[2], ~bits[3]);
} }
constexpr inline bool contains(char c) const { constexpr inline bool contains(unsigned char c) const {
return (bits[c / 64] & (1ll << (c % 64))) != 0; return (bits[c / 64] & (1ll << (c % 64))) != 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment