Commit 208a048d authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

src/frame.c (x_report_frame_params): Cast to avoid compiler warnings.

parent 69f4b618
2011-09-09 Eli Zaretskii <>
* frame.c (x_report_frame_params): Cast to avoid compiler warnings.
2011-09-08 Martin Rudalics <>
* window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
......@@ -3098,7 +3098,11 @@ x_report_frame_params (struct frame *f, Lisp_Object *alistptr)
for non-toolkit scroll bar.
ruler-mode.el depends on this. */
: Qnil));
/* FRAME_X_WINDOW is not guaranteed to return an integer. E.g., on
MS-Windows it returns a value whose type is HANDLE, which is
actually a pointer. Explicit casting avoids compiler
warnings. */
w = (unsigned long) FRAME_X_WINDOW (f);
sprintf (buf, "%lu", w);
store_in_alist (alistptr, Qwindow_id,
build_string (buf));
......@@ -3108,7 +3112,7 @@ x_report_frame_params (struct frame *f, Lisp_Object *alistptr)
if (FRAME_X_OUTPUT (f)->widget)
w = (unsigned long) FRAME_OUTER_WINDOW (f);
sprintf (buf, "%lu", w);
store_in_alist (alistptr, Qouter_window_id,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment