Merge pull request #553 from NuklearBomb/patch-1

Use NK_DTOA in function nk_do_property
This commit is contained in:
Micha Mettke 2017-11-14 19:10:05 +01:00 committed by GitHub
commit 89b32fb948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16115,11 +16115,11 @@ nk_do_property(nk_flags *ws,
num_len = nk_strlen(string);
break;
case NK_PROPERTY_FLOAT:
nk_dtoa(string, (double)variant->value.f);
NK_DTOA(string, (double)variant->value.f);
num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION);
break;
case NK_PROPERTY_DOUBLE:
nk_dtoa(string, variant->value.d);
NK_DTOA(string, variant->value.d);
num_len = nk_string_float_limit(string, NK_MAX_FLOAT_PRECISION);
break;
}