aboutsummaryrefslogtreecommitdiff
path: root/external/rapidjson/internal/strtod.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-17 09:35:49 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-17 09:35:49 +0200
commitf62ebc5c811b76c05327dd56877024df60a47a9b (patch)
tree81e98c9bf5d11e1bb7e2bff81105af879d43a32a /external/rapidjson/internal/strtod.h
parentMerge pull request #1081 (diff)
downloadmonero-f62ebc5c811b76c05327dd56877024df60a47a9b.tar.xz
update rapidjson
Diffstat (limited to 'external/rapidjson/internal/strtod.h')
-rw-r--r--external/rapidjson/internal/strtod.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/external/rapidjson/internal/strtod.h b/external/rapidjson/internal/strtod.h
index 89590c404..289c413b0 100644
--- a/external/rapidjson/internal/strtod.h
+++ b/external/rapidjson/internal/strtod.h
@@ -15,7 +15,6 @@
#ifndef RAPIDJSON_STRTOD_
#define RAPIDJSON_STRTOD_
-#include "../rapidjson.h"
#include "ieee754.h"
#include "biginteger.h"
#include "diyfp.h"
@@ -143,7 +142,7 @@ inline bool StrtodDiyFp(const char* decimals, size_t length, size_t decimalPosit
size_t remaining = length - i;
const unsigned kUlpShift = 3;
const unsigned kUlp = 1 << kUlpShift;
- int error = (remaining == 0) ? 0 : kUlp / 2;
+ int64_t error = (remaining == 0) ? 0 : kUlp / 2;
DiyFp v(significand, 0);
v = v.Normalize();