Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
bc5a21bf
Commit
bc5a21bf
authored
Feb 18, 2017
by
David Renshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug in parsing of non-ascii constants
parent
1b1407c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
test.capnp
c++/src/capnp/test.capnp
+2
-0
char.h
c++/src/kj/parse/char.h
+1
-1
No files found.
c++/src/capnp/test.capnp
View file @
bc5a21bf
...
...
@@ -748,6 +748,8 @@ const embeddedData :Data = embed "testdata/packed";
const embeddedText :Text = embed "testdata/short.txt";
const embeddedStruct :TestAllTypes = embed "testdata/binary";
const nonAsciiText :Text = "♫ é ✓";
struct TestAnyPointerConstants {
anyKindAsStruct @0 :AnyPointer;
anyStructAsStruct @1 :AnyStruct;
...
...
c++/src/kj/parse/char.h
View file @
bc5a21bf
...
...
@@ -107,7 +107,7 @@ public:
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment