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
824120b8
Commit
824120b8
authored
Mar 05, 2016
by
Milo Yip
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #575 from corporateshark/master
Removed commented code and added an explanatory comment instead
parents
01b2d463
6e70e352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
reader.h
include/rapidjson/reader.h
+1
-3
No files found.
include/rapidjson/reader.h
View file @
824120b8
...
...
@@ -1287,13 +1287,12 @@ private:
bool
cont
=
true
;
if
(
parseFlags
&
kParseNumbersAsStringsFlag
)
{
if
(
parseFlags
&
kParseInsituFlag
)
{
s
.
Pop
();
// Pop stack no matter if it will be used or not.
typename
InputStream
::
Ch
*
head
=
is
.
PutBegin
();
const
size_t
length
=
s
.
Tell
()
-
startOffset
;
RAPIDJSON_ASSERT
(
length
<=
0xFFFFFFFF
);
// *(head + length) = '\0';
// unable to insert the \0 character here, it will erase the comma after this number
const
typename
TargetEncoding
::
Ch
*
const
str
=
reinterpret_cast
<
typename
TargetEncoding
::
Ch
*>
(
head
);
cont
=
handler
.
RawNumber
(
str
,
SizeType
(
length
),
false
);
}
...
...
@@ -1308,7 +1307,6 @@ private:
const
SizeType
length
=
static_cast
<
SizeType
>
(
stackStream
.
Length
())
-
1
;
cont
=
handler
.
RawNumber
(
str
,
SizeType
(
length
),
true
);
}
}
else
{
size_t
length
=
s
.
Length
();
...
...
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