From b045ba29b8869594f6cf189bbd4d70cc31f29e22 Mon Sep 17 00:00:00 2001 From: Kenichi Ishigaki Date: Wed, 31 Mar 2021 06:30:45 +0900 Subject: [PATCH] Use NVff (Tux++, leont++) #65 --- dbdimp.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dbdimp.c b/dbdimp.c index 0165dcb..d30e98e 100644 --- a/dbdimp.c +++ b/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;