From: Po Lu Date: Sun, 16 Jan 2022 02:05:17 +0000 (+0800) Subject: * src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size. X-Git-Tag: emacs-29.0.90~3021 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c59e870cceb2f40040d6c02da7658c58054ab3ad;p=emacs.git * src/xwidget.c (webkit_js_to_lisp): Use correct constant to check size. --- 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;