From c59e870cceb2f40040d6c02da7658c58054ab3ad Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 16 Jan 2022 10:05:17 +0800 Subject: [PATCH] * src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size. --- src/xwidget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xwidget.c b/src/xwidget.c index 45879b15cbe..fce0aafb099 100644 --- a/src/xwidget.c +++ b/src/xwidget.c @@ -1855,7 +1855,7 @@ webkit_js_to_lisp (JSCValue *value) const gint32 dlen = jsc_value_to_int32 (len); Lisp_Object obj; - if (! (0 <= dlen && dlen < PTRDIFF_MAX + 1.0)) + if (! (0 <= dlen && dlen < G_MAXINT32 + 1)) memory_full (SIZE_MAX); ptrdiff_t n = dlen; -- 2.39.2