diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 83170f8..c48455b 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -926,7 +926,7 @@ Value::isConvertibleTo( ValueType other ) const || other == booleanValue; case uintValue: return ( other == nullValue && value_.uint_ == 0 ) - || ( other == intValue && value_.uint_ <= (unsigned)maxInt ) + || ( other == intValue && value_.uint_ <= (LargestUInt)maxInt ) || other == uintValue || other == realValue || other == stringValue