mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 22:28:47 -04:00
Experiment with quadmath patch from Tux to see if it works with older version of FreeBSD
This commit is contained in:
parent
076a7fd814
commit
1aaf18dbf7
1 changed files with 5 additions and 1 deletions
6
dbdimp.c
6
dbdimp.c
|
@ -405,7 +405,11 @@ sqlite_is_number(pTHX_ const char *v, int sql_type)
|
||||||
if (!_sqlite_atoi64(v, &iv)) return 1;
|
if (!_sqlite_atoi64(v, &iv)) return 1;
|
||||||
}
|
}
|
||||||
if (sql_type != SQLITE_INTEGER) {
|
if (sql_type != SQLITE_INTEGER) {
|
||||||
sprintf(format, (has_plus ? "+%%.%d" NVff : "%%.%d" NVff), precision);
|
#ifdef USE_QUADMATH
|
||||||
|
sprintf(format, (has_plus ? "+%%.%dQf" : "%%.%dQf"), precision);
|
||||||
|
#else
|
||||||
|
sprintf(format, (has_plus ? "+%%.%df" : "%%.%df" ), precision);
|
||||||
|
#endif
|
||||||
if (strEQ(form(format, atof(v)), v)) return 2;
|
if (strEQ(form(format, atof(v)), v)) return 2;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue