Don't use qSNaN()

signalling NaNs are generally undesirable as they with trigger a signal
on any further arithmetics operation done to them.

Change-Id: Icebae3d4eb22c8294b11da234a2ba5c7e31b9733
Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
Ulf Hermann
2015-12-07 14:41:07 +01:00
parent b2321e04f1
commit 2aff7963b4

View File

@@ -53,7 +53,7 @@ static inline int toDigit(char c)
double integerFromString(const char *buf, int size, int radix)
{
if (size == 0)
return qSNaN();
return qQNaN();
double sign = 1.0;
int i = 0;
@@ -92,7 +92,7 @@ double integerFromString(const char *buf, int size, int radix)
if (!qstrcmp(buf, "Infinity"))
result = qInf();
else
result = qSNaN();
result = qQNaN();
} else {
result = 0;
double multiplier = 1;