Skip to content

Commit b905735

Browse files
committed
Fix up merge
1 parent 06d95c6 commit b905735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/json/reader.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ bool Reader<_Value>::decodeUnicodeEscapeSequence(Token& token,
752752
token,
753753
current);
754754
}
755-
ret_unicode = unicode;
755+
ret_unicode = static_cast<unsigned int>(unicode);
756756
return true;
757757
}
758758

@@ -1599,7 +1599,7 @@ bool OurReader<_Value>::decodeNumber(Token& token, _Value& decoded) {
15991599
Char c = *current++;
16001600
if (c < '0' || c > '9')
16011601
return decodeDouble(token, decoded);
1602-
typename _Value::UInt digit(c - '0');
1602+
typename _Value::UInt digit(static_cast<typename _Value::UInt>(c - '0'));
16031603
if (value >= threshold) {
16041604
// We've hit or exceeded the max value divided by 10 (rounded down). If
16051605
// a) we've only just touched the limit, b) this is the last digit, and

0 commit comments

Comments
 (0)