mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-22 16:58:11 +08:00
Updated a cast to use a more appropriate type.
This commit is contained in:
@@ -926,7 +926,7 @@ Value::isConvertibleTo( ValueType other ) const
|
|||||||
|| other == booleanValue;
|
|| other == booleanValue;
|
||||||
case uintValue:
|
case uintValue:
|
||||||
return ( other == nullValue && value_.uint_ == 0 )
|
return ( other == nullValue && value_.uint_ == 0 )
|
||||||
|| ( other == intValue && value_.uint_ <= (unsigned)maxInt )
|
|| ( other == intValue && value_.uint_ <= (LargestUInt)maxInt )
|
||||||
|| other == uintValue
|
|| other == uintValue
|
||||||
|| other == realValue
|
|| other == realValue
|
||||||
|| other == stringValue
|
|| other == stringValue
|
||||||
|
Reference in New Issue
Block a user