From 1aaf18dbf7ce9d456ae65777dee55b9ba963697a Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Mon, 14 Jun 2021 12:46:37 +0900 Subject: [PATCH] Experiment with quadmath patch from Tux to see if it works with older version of FreeBSD --- dbdimp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dbdimp.c b/dbdimp.c index c81b6f7..a8361ac 100644 --- a/dbdimp.c +++ b/dbdimp.c @@ -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;