Fix compilation
This commit is contained in:
parent
d1e6eae2a9
commit
e392652754
@ -24,6 +24,14 @@
|
||||
#include "rapidjson/encodedstream.h"
|
||||
#include "rapidjson/memorystream.h"
|
||||
|
||||
#ifdef RAPIDJSON_SSE2
|
||||
#define SIMD_SUFFIX(name) name##_SSE2
|
||||
#elif defined(RAPIDJSON_SSE42)
|
||||
#define SIMD_SUFFIX(name) name##_SSE42
|
||||
#else
|
||||
#define SIMD_SUFFIX(name) name
|
||||
#endif
|
||||
|
||||
using namespace rapidjson;
|
||||
|
||||
class RapidJson : public PerfTest {
|
||||
|
@ -417,7 +417,7 @@ TEST(Reader, ParseNumber_NormalPrecisionError) {
|
||||
a = h.actual_;
|
||||
uint64_t bias1 = e.ToBias();
|
||||
uint64_t bias2 = a.ToBias();
|
||||
double ulp = bias1 >= bias2 ? bias1 - bias2 : bias2 - bias1;
|
||||
double ulp = static_cast<double>(bias1 >= bias2 ? bias1 - bias2 : bias2 - bias1);
|
||||
ulpMax = std::max(ulpMax, ulp);
|
||||
ulpSum += ulp;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user