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:
parent
7fcca420ba
commit
b045ba29b8
1 changed files with 1 additions and 5 deletions
6
dbdimp.c
6
dbdimp.c
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue