1
0
Fork 0
mirror of https://github.com/DBD-SQLite/DBD-SQLite synced 2025-06-07 14:19:10 -04:00

Use NVff (Tux++, leont++) #65

This commit is contained in:
Kenichi Ishigaki 2021-03-31 06:30:45 +09:00
parent 7fcca420ba
commit b045ba29b8

View file

@ -407,11 +407,7 @@ sqlite_is_number(pTHX_ const char *v, int sql_type)
if (!_sqlite_atoi64(v, &iv)) return 1;
}
if (sql_type != SQLITE_INTEGER) {
#ifdef USE_QUADMATH
quadmath_snprintf(format, (has_plus ? 7 : 6), (has_plus ? "+%%.%df" : "%%.%df"), precision);
#else
sprintf(format, (has_plus ? "+%%.%dF" : "%%.%dF"), precision);
#endif
sprintf(format, (has_plus ? "+%%.%d" NVff : "%%.%d" NVff), precision);
if (strEQ(form(format, atof(v)), v)) return 2;
}
return 0;