Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
208a048d
Commit
208a048d
authored
Sep 09, 2011
by
Eli Zaretskii
Browse files
src/frame.c (x_report_frame_params): Cast to avoid compiler warnings.
parent
69f4b618
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
src/ChangeLog
src/ChangeLog
+4
-0
src/frame.c
src/frame.c
+6
-2
No files found.
src/ChangeLog
View file @
208a048d
2011-09-09 Eli Zaretskii <eliz@gnu.org>
* frame.c (x_report_frame_params): Cast to avoid compiler warnings.
2011-09-08 Martin Rudalics <rudalics@gmx.at>
* window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
...
...
src/frame.c
View file @
208a048d
...
...
@@ -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
));
w
=
FRAME_X_WINDOW
(
f
);
/* 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
)
#endif
{
w
=
FRAME_OUTER_WINDOW
(
f
);
w
=
(
unsigned
long
)
FRAME_OUTER_WINDOW
(
f
);
sprintf
(
buf
,
"%lu"
,
w
);
}
store_in_alist
(
alistptr
,
Qouter_window_id
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment