summaryrefslogtreecommitdiff
path: root/src/xfns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-12-02 18:27:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-12-02 18:27:10 -0800
commit25636e136267379f6b32b8dff712f72438cbec35 (patch)
treee72b043bffce81b3f87bce01de184fe40666e0d9 /src/xfns.c
parent9139632a34c396ccd1677e86f3e4e870c025b2e3 (diff)
Minor integer overflow fixes.
* window.c (Fset_window_new_pixel, grow_mini_window): * xdisp.c (Fwindow_text_pixel_size): Avoid undefined behavior on signed integer overflow. * xfns.c (x_set_mouse_color): Check that drag shape fits in 'unsigned', since that's what X wants.
Diffstat (limited to 'src/xfns.c')
-rw-r--r--src/xfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index bd4a6a62db..2830a79972 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -680,7 +680,7 @@ x_set_mouse_color (struct frame *f, Lisp_Object arg, Lisp_Object oldval)
if (!NILP (Vx_window_horizontal_drag_shape))
{
- CHECK_NUMBER (Vx_window_horizontal_drag_shape);
+ CHECK_TYPE_RANGED_INTEGER (unsigned, Vx_window_horizontal_drag_shape);
horizontal_drag_cursor
= XCreateFontCursor (dpy, XINT (Vx_window_horizontal_drag_shape));
}