Added a test for issue #808

This commit is contained in:
Benoit Blanchon
2018-09-11 16:16:20 +02:00
parent b106b1ed14
commit 98c8e8e35a
3 changed files with 12 additions and 7 deletions

View File

@ -30,13 +30,6 @@ struct JsonVariantData {
content.asFloat = value;
}
void setInteger(JsonInteger value) {
if (value > 0)
setPostiveInteger(static_cast<JsonUInt>(value));
else
setNegativeInteger(static_cast<JsonUInt>(-value));
}
void setNegativeInteger(JsonUInt value) {
type = JSON_NEGATIVE_INTEGER;
content.asInteger = value;