diff options
Diffstat (limited to 'src/xwidget.c')
| -rw-r--r-- | src/xwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xwidget.c b/src/xwidget.c index 45879b15cbe..fb66a17acd8 100644 --- a/src/xwidget.c +++ b/src/xwidget.c | |||
| @@ -39,6 +39,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */ | |||
| 39 | #include <webkit2/webkit2.h> | 39 | #include <webkit2/webkit2.h> |
| 40 | #include <JavaScriptCore/JavaScript.h> | 40 | #include <JavaScriptCore/JavaScript.h> |
| 41 | #include <cairo.h> | 41 | #include <cairo.h> |
| 42 | #include <cairo-xlib.h> | ||
| 42 | #ifndef HAVE_PGTK | 43 | #ifndef HAVE_PGTK |
| 43 | #include <X11/Xlib.h> | 44 | #include <X11/Xlib.h> |
| 44 | #else | 45 | #else |
| @@ -1855,7 +1856,7 @@ webkit_js_to_lisp (JSCValue *value) | |||
| 1855 | const gint32 dlen = jsc_value_to_int32 (len); | 1856 | const gint32 dlen = jsc_value_to_int32 (len); |
| 1856 | 1857 | ||
| 1857 | Lisp_Object obj; | 1858 | Lisp_Object obj; |
| 1858 | if (! (0 <= dlen && dlen < PTRDIFF_MAX + 1.0)) | 1859 | if (! (0 <= dlen && dlen < G_MAXINT32)) |
| 1859 | memory_full (SIZE_MAX); | 1860 | memory_full (SIZE_MAX); |
| 1860 | 1861 | ||
| 1861 | ptrdiff_t n = dlen; | 1862 | ptrdiff_t n = dlen; |