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

Experiment with quadmath patch from Tux to see if it works with older version of FreeBSD

This commit is contained in:
Kenichi Ishigaki 2021-06-14 12:46:37 +09:00
parent 076a7fd814
commit 1aaf18dbf7

View file

@ -405,7 +405,11 @@ sqlite_is_number(pTHX_ const char *v, int sql_type)
if (!_sqlite_atoi64(v, &iv)) return 1;
}
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;
}
return 0;