diff options
author | drh <> | 2023-09-14 10:46:50 +0000 |
---|---|---|
committer | drh <> | 2023-09-14 10:46:50 +0000 |
commit | dc03af67a4427542a34fd64a88a72089c2e192c1 (patch) | |
tree | 688dd454730831b3120a00727c2031151c111d65 /src/vdbeaux.c | |
parent | 595c3ecc9424edab864dea21d0408114065923e9 (diff) | |
parent | 23164c984e9f8fa5b495cc5c797952c33a0e3473 (diff) | |
download | sqlite-dc03af67a4427542a34fd64a88a72089c2e192c1.tar.gz sqlite-dc03af67a4427542a34fd64a88a72089c2e192c1.zip |
Do not set the global bUseLongDouble flag based purely on sizeof(long double)
being more than 8. That is a necessary but not sufficient condition to use
the long double routines. Instead, do a run-time test to verify that long
double really does provide extra precision.
FossilOrigin-Name: aa999d490b743f455f2fb6c41009098330380f0bc2e9b1c28fbc82141a9138ce
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 225c8d12c..106b8073c 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -4467,7 +4467,7 @@ SQLITE_NOINLINE int sqlite3BlobCompare(const Mem *pB1, const Mem *pB2){ ** equal to, or greater than the second (double). */ int sqlite3IntFloatCompare(i64 i, double r){ - if( sizeof(LONGDOUBLE_TYPE)>8 ){ + if( sqlite3Config.bUseLongDouble ){ LONGDOUBLE_TYPE x = (LONGDOUBLE_TYPE)i; testcase( x<r ); testcase( x>r ); |