File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -752,7 +752,7 @@ bool Reader<_Value>::decodeUnicodeEscapeSequence(Token& token,
752
752
token,
753
753
current);
754
754
}
755
- ret_unicode = unicode;
755
+ ret_unicode = static_cast < unsigned int >( unicode) ;
756
756
return true ;
757
757
}
758
758
@@ -1599,7 +1599,7 @@ bool OurReader<_Value>::decodeNumber(Token& token, _Value& decoded) {
1599
1599
Char c = *current++;
1600
1600
if (c < ' 0' || c > ' 9' )
1601
1601
return decodeDouble (token, decoded);
1602
- typename _Value::UInt digit (c - ' 0' );
1602
+ typename _Value::UInt digit (static_cast < typename _Value::UInt>( c - ' 0' ) );
1603
1603
if (value >= threshold) {
1604
1604
// We've hit or exceeded the max value divided by 10 (rounded down). If
1605
1605
// a) we've only just touched the limit, b) this is the last digit, and
You can’t perform that action at this time.
0 commit comments