Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
R
rapidjson
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
rapidjson
Commits
f183282b
Commit
f183282b
authored
Jan 22, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning
parent
4f4aff32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
reader.h
include/rapidjson/reader.h
+3
-3
No files found.
include/rapidjson/reader.h
View file @
f183282b
...
...
@@ -680,7 +680,7 @@ private:
++
length_
;
}
RAPIDJSON_FORCEINLINE
void
*
Push
(
size_t
count
)
{
RAPIDJSON_FORCEINLINE
void
*
Push
(
SizeType
count
)
{
length_
+=
count
;
return
stack_
.
template
Push
<
Ch
>
(
count
);
}
...
...
@@ -831,13 +831,13 @@ private:
const
__m128i
x
=
_mm_or_si128
(
_mm_or_si128
(
t1
,
t2
),
t3
);
unsigned
short
r
=
static_cast
<
unsigned
short
>
(
_mm_movemask_epi8
(
x
));
if
(
RAPIDJSON_UNLIKELY
(
r
!=
0
))
{
// some of characters is escaped
size_t
length
;
SizeType
length
;
#ifdef _MSC_VER // Find the index of first escaped
unsigned
long
offset
;
_BitScanForward
(
&
offset
,
r
);
length
=
offset
;
#else
length
=
static_cast
<
size_t
>
(
__builtin_ffs
(
r
)
-
1
);
length
=
static_cast
<
SizeType
>
(
__builtin_ffs
(
r
)
-
1
);
#endif
char
*
q
=
reinterpret_cast
<
char
*>
(
os
.
Push
(
length
));
for
(
size_t
i
=
0
;
i
<
length
;
i
++
)
...
...
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