summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-16 17:30:14 +0000
commit30fbe79b8982a0d592ceff1f35038a83807a5e3b (patch)
treeec0680f5cd4232878365ff07b42e860a3da6178b /src/util.c
parentAdding debian version 3.45.2-1. (diff)
downloadsqlite3-30fbe79b8982a0d592ceff1f35038a83807a5e3b.tar.xz
sqlite3-30fbe79b8982a0d592ceff1f35038a83807a5e3b.zip
Merging upstream version 3.45.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index dd49902..ca886a1 100644
--- a/src/util.c
+++ b/src/util.c
@@ -68,6 +68,19 @@ int sqlite3IsNaN(double x){
}
#endif /* SQLITE_OMIT_FLOATING_POINT */
+#ifndef SQLITE_OMIT_FLOATING_POINT
+/*
+** Return true if the floating point value is NaN or +Inf or -Inf.
+*/
+int sqlite3IsOverflow(double x){
+ int rc; /* The value return */
+ u64 y;
+ memcpy(&y,&x,sizeof(y));
+ rc = IsOvfl(y);
+ return rc;
+}
+#endif /* SQLITE_OMIT_FLOATING_POINT */
+
/*
** Compute a string length that is limited to what can be stored in
** lower 30 bits of a 32-bit signed integer.