Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
a3a9d566
Commit
a3a9d566
authored
Jul 19, 2020
by
jprochazk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add break to binary_reader::get_binary and get_string
parent
43ab8a23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
include/nlohmann/detail/input/binary_reader.hpp
include/nlohmann/detail/input/binary_reader.hpp
+6
-6
No files found.
include/nlohmann/detail/input/binary_reader.hpp
View file @
a3a9d566
...
@@ -2271,15 +2271,15 @@ class binary_reader
...
@@ -2271,15 +2271,15 @@ class binary_reader
string_t
&
result
)
string_t
&
result
)
{
{
bool
success
=
true
;
bool
success
=
true
;
std
::
generate_n
(
std
::
back_inserter
(
result
),
len
,
[
this
,
&
success
,
&
format
]()
for
(
NumberType
i
=
0
;
i
<
len
;
i
++
)
{
{
get
();
get
();
if
(
JSON_HEDLEY_UNLIKELY
(
!
unexpect_eof
(
format
,
"string"
)))
if
(
JSON_HEDLEY_UNLIKELY
(
!
unexpect_eof
(
format
,
"string"
)))
{
{
success
=
false
;
success
=
false
;
break
;
}
}
return
std
::
char_traits
<
char_type
>::
to_char_type
(
current
);
return
std
::
char_traits
<
char_type
>::
to_char_type
(
current
);
}
)
;
};
return
success
;
return
success
;
}
}
...
@@ -2303,15 +2303,15 @@ class binary_reader
...
@@ -2303,15 +2303,15 @@ class binary_reader
binary_t
&
result
)
binary_t
&
result
)
{
{
bool
success
=
true
;
bool
success
=
true
;
std
::
generate_n
(
std
::
back_inserter
(
result
),
len
,
[
this
,
&
success
,
&
format
]()
for
(
NumberType
i
=
0
;
i
<
len
;
i
++
)
{
{
get
();
get
();
if
(
JSON_HEDLEY_UNLIKELY
(
!
unexpect_eof
(
format
,
"binary"
)))
if
(
JSON_HEDLEY_UNLIKELY
(
!
unexpect_eof
(
format
,
"binary"
)))
{
{
success
=
false
;
success
=
false
;
break
;
}
}
return
static_cast
<
std
::
uint8_t
>
(
current
);
return
static_cast
<
std
::
uint8_t
>
(
current
);
}
);
}
return
success
;
return
success
;
}
}
...
...
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