This commit is contained in:
Branimir Karadžić
2017-06-17 16:50:09 -07:00
parent 65eb5d12d4
commit ad17de5811
3 changed files with 21 additions and 21 deletions

View File

@@ -186,8 +186,12 @@ static bool testFromString(double _value, const char* _input)
{
char tmp[1024];
int32_t num = bx::toString(tmp, BX_COUNTOF(tmp), _value);
const double lhs = bx::fromString(tmp);
const double rhs = bx::fromString(_input);
double lhs;
bx::fromString(&lhs, tmp);
double rhs;
bx::fromString(&rhs, _input);
if (lhs == rhs)
{