mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-07 09:04:57 +02:00
Updated a cast to use a more appropriate type.
This commit is contained in:
parent
3b556ec633
commit
785ba2675d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user