diff options
| author | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2022-01-22 11:02:50 +0000 |
| commit | 14d64a8adcc866deecd758b898e8ef2d836b354a (patch) | |
| tree | 83cff9669e266f8e283ccb8cd7518e909240f1e1 /src/xwidget.c | |
| parent | bdd9b5b8a0d37dd09ee530c1dab3a44bee09e0f8 (diff) | |
| parent | ebe334cdc234de2897263aed4c05ac7088c11857 (diff) | |
| download | emacs-scratch/correct-warning-pos.tar.gz emacs-scratch/correct-warning-pos.zip | |
Merge branch 'master' into scratch/correct-warning-posscratch/correct-warning-pos
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; |