You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comparisons between string values and float values behave differently than those between string values and int values.
More precisely, int values can reliably compared to string values, as the implicit conversion is performed correctly. However, this is not the case for float values. This is due to the usage of sprintf to perform the conversion (for example, lines 185-189 of src/buzz/buzztype.c).
Associated test suite: TEST(BuzzObjCompare, String) in src/testing/unittest/buzztype_test.cpp (instructions on how to run the tests are provided in src/testing/unittest/README.md).
The text was updated successfully, but these errors were encountered:
Comparisons between
string
values andfloat
values behave differently than those betweenstring
values andint
values.More precisely,
int
values can reliably compared tostring
values, as the implicit conversion is performed correctly. However, this is not the case forfloat
values. This is due to the usage ofsprintf
to perform the conversion (for example, lines 185-189 of src/buzz/buzztype.c).Code to reproduce:
Associated test suite: TEST(BuzzObjCompare, String) in src/testing/unittest/buzztype_test.cpp (instructions on how to run the tests are provided in src/testing/unittest/README.md).
The text was updated successfully, but these errors were encountered: