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
68a68125
Commit
68a68125
authored
Apr 05, 2016
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #306 from mologie/fix-json-osx-build
Fix building with Xcode 7.3
parents
3c7ae27a
078bb0b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
json.c++
c++/src/capnp/compat/json.c++
+4
-4
No files found.
c++/src/capnp/compat/json.c++
View file @
68a68125
...
...
@@ -20,9 +20,9 @@
// THE SOFTWARE.
#include "json.h"
#include <math.h> // for HUGEVAL to check for overflow in st
d::st
rtod
#include <stdlib.h> // st
d::st
rtod
#include <errno.h> // for st
d::st
rtod errors
#include <math.h> // for HUGEVAL to check for overflow in strtod
#include <stdlib.h> // strtod
#include <errno.h> // for strtod errors
#include <unordered_map>
#include <capnp/orphan.h>
#include <kj/debug.h>
...
...
@@ -518,7 +518,7 @@ public:
char
*
endPtr
;
errno
=
0
;
double
value
=
st
d
::
st
rtod
(
numberStr
.
begin
(),
&
endPtr
);
double
value
=
strtod
(
numberStr
.
begin
(),
&
endPtr
);
KJ_ASSERT
(
endPtr
!=
numberStr
.
begin
(),
"strtod should not fail! Is consumeNumber wrong?"
);
KJ_REQUIRE
((
value
!=
HUGE_VAL
&&
value
!=
-
HUGE_VAL
)
||
errno
!=
ERANGE
,
...
...
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