diff options
author | drh <drh@noemail.net> | 2010-01-13 15:15:40 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-01-13 15:15:40 +0000 |
commit | 52d14521fa428d232b61b3b73bcfbb53c6e2d3e4 (patch) | |
tree | 4fedbd5ee8d7fc567af43b7829a20745b9e8af7a /src | |
parent | 33d58bcee9fd4bd25d624122554b7d9e52b25903 (diff) | |
download | sqlite-52d14521fa428d232b61b3b73bcfbb53c6e2d3e4.tar.gz sqlite-52d14521fa428d232b61b3b73bcfbb53c6e2d3e4.zip |
Make the doubleToInt64() routine a pass-through when using OMIT_FLOATING_POINT.
FossilOrigin-Name: 417167182efaa1da74008952137de3e00c23494e
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbemem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vdbemem.c b/src/vdbemem.c index 0acab551b..eb6b16981 100644 --- a/src/vdbemem.c +++ b/src/vdbemem.c @@ -315,6 +315,10 @@ void sqlite3VdbeMemRelease(Mem *p){ ** before attempting the conversion. */ static i64 doubleToInt64(double r){ +#ifdef SQLITE_OMIT_FLOATING_POINT + /* When floating-point is omitted, double and int64 are the same thing */ + return r; +#else /* ** Many compilers we encounter do not define constants for the ** minimum and maximum 64-bit integers, or they define them @@ -336,6 +340,7 @@ static i64 doubleToInt64(double r){ }else{ return (i64)r; } +#endif } /* |