diff options
| author | Paul Eggert | 2015-02-25 20:43:25 -0800 |
|---|---|---|
| committer | Paul Eggert | 2015-02-25 20:43:38 -0800 |
| commit | 8ae2142555b313c6939d7659e9db65431db06837 (patch) | |
| tree | d55e4e0c6da8c3520c976a79a71f59387b63e285 /src | |
| parent | 4f9befb3b81e967696f40a0ef7a758d6e56e2933 (diff) | |
| download | emacs-8ae2142555b313c6939d7659e9db65431db06837.tar.gz emacs-8ae2142555b313c6939d7659e9db65431db06837.zip | |
* xfns.c (x_real_pos_and_offsets): Fix pointer signedness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xfns.c | 19 |
2 files changed, 14 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e4506968baa..37e6d20eb83 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2015-02-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * xfns.c (x_real_pos_and_offsets): Fix pointer signedness. | ||
| 4 | |||
| 1 | 2015-02-25 Jan Djärv <jan.h.d@swipnet.se> | 5 | 2015-02-25 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 6 | ||
| 3 | * xterm.h (struct x_output): Remove x_pixels_outer_diff, | 7 | * xterm.h (struct x_output): Remove x_pixels_outer_diff, |
diff --git a/src/xfns.c b/src/xfns.c index afbd460b7c8..4fc92c3fed2 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -334,15 +334,16 @@ x_real_pos_and_offsets (struct frame *f, | |||
| 334 | if (yptr) *yptr = real_y; | 334 | if (yptr) *yptr = real_y; |
| 335 | 335 | ||
| 336 | if (right_offset_x || bottom_offset_y) | 336 | if (right_offset_x || bottom_offset_y) |
| 337 | { | 337 | { |
| 338 | unsigned int ign, fw, fh; | 338 | int xy_ign; |
| 339 | Window rootw; | 339 | unsigned int ign, fw, fh; |
| 340 | 340 | Window rootw; | |
| 341 | XGetGeometry (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), | 341 | |
| 342 | &rootw, &ign, &ign, &fw, &fh, &ign, &ign); | 342 | XGetGeometry (FRAME_X_DISPLAY (f), FRAME_OUTER_WINDOW (f), |
| 343 | if (right_offset_x) *right_offset_x = ow - fw + outer_x; | 343 | &rootw, &xy_ign, &xy_ign, &fw, &fh, &ign, &ign); |
| 344 | if (bottom_offset_y) *bottom_offset_y = oh - fh + outer_y; | 344 | if (right_offset_x) *right_offset_x = ow - fw + outer_x; |
| 345 | } | 345 | if (bottom_offset_y) *bottom_offset_y = oh - fh + outer_y; |
| 346 | } | ||
| 346 | } | 347 | } |
| 347 | 348 | ||
| 348 | /* Store the screen positions of frame F into XPTR and YPTR. | 349 | /* Store the screen positions of frame F into XPTR and YPTR. |