fix ci_test errors

This commit is contained in:
Qianqian Fang 2022-02-18 17:22:38 -05:00
parent 42701cc2fc
commit 6fc779005c
2 changed files with 4 additions and 4 deletions

View File

@ -2288,8 +2288,8 @@ class binary_reader
unsigned int half = (byte1 << 8) + byte2;
const double val = [&half]
{
unsigned int exp = (half >> 10) & 0x1F;
unsigned int mant = half & 0x3FF;
const int exp = (half >> 10) & 0x1F;
const int mant = half & 0x3FF;
JSON_ASSERT(0 <= exp&& exp <= 32);
JSON_ASSERT(0 <= mant&& mant <= 1024);
switch (exp)

View File

@ -10664,8 +10664,8 @@ class binary_reader
unsigned int half = (byte1 << 8) + byte2;
const double val = [&half]
{
unsigned int exp = (half >> 10) & 0x1F;
unsigned int mant = half & 0x3FF;
const int exp = (half >> 10) & 0x1F;
const int mant = half & 0x3FF;
JSON_ASSERT(0 <= exp&& exp <= 32);
JSON_ASSERT(0 <= mant&& mant <= 1024);
switch (exp)