mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-06 16:54:56 +02:00
Fixed a double -> float compilation warning/error.
This commit is contained in:
parent
c025697ea5
commit
acdefb0869
@ -875,7 +875,7 @@ Value::asFloat() const
|
|||||||
case nullValue:
|
case nullValue:
|
||||||
return 0.0;
|
return 0.0;
|
||||||
case booleanValue:
|
case booleanValue:
|
||||||
return value_.bool_ ? 1.0 : 0.0;
|
return value_.bool_ ? 1.0f : 0.0f;
|
||||||
default:
|
default:
|
||||||
JSON_FAIL_MESSAGE("Value is not convertible to float.");
|
JSON_FAIL_MESSAGE("Value is not convertible to float.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user