diff options
| author | Paul Eggert | 2011-04-18 23:34:43 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-04-18 23:34:43 -0700 |
| commit | 2172544bcd6f38bc7c0888a148a6dc8a903314c0 (patch) | |
| tree | ebbb7be8a76ac40bd72537cff5f70ac07aa48d0b /src/xselect.c | |
| parent | e50d64ebfa2e0dbc563ba35cd048af77beacf000 (diff) | |
| download | emacs-2172544bcd6f38bc7c0888a148a6dc8a903314c0.tar.gz emacs-2172544bcd6f38bc7c0888a148a6dc8a903314c0.zip | |
* xfns.c (Fx_window_property): Simplify a bit,
to make a bit faster and to avoid GCC 4.6.0 warning.
* xselect.c (x_get_window_property, x_handle_dnd_message): Likewise.
Diffstat (limited to 'src/xselect.c')
| -rw-r--r-- | src/xselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index edf00226404..1141f2c6b68 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -1477,7 +1477,7 @@ x_get_window_property (Display *display, Window window, Atom property, | |||
| 1477 | The bytes and offsets passed to XGetWindowProperty refers to the | 1477 | The bytes and offsets passed to XGetWindowProperty refers to the |
| 1478 | property and those are indeed in 32 bit quantities if format is 32. */ | 1478 | property and those are indeed in 32 bit quantities if format is 32. */ |
| 1479 | 1479 | ||
| 1480 | if (*actual_format_ret == 32 && *actual_format_ret < BITS_PER_LONG) | 1480 | if (32 < BITS_PER_LONG && *actual_format_ret == 32) |
| 1481 | { | 1481 | { |
| 1482 | unsigned long i; | 1482 | unsigned long i; |
| 1483 | int *idata = (int *) ((*data_ret) + offset); | 1483 | int *idata = (int *) ((*data_ret) + offset); |
| @@ -2432,7 +2432,7 @@ x_handle_dnd_message (struct frame *f, XClientMessageEvent *event, struct x_disp | |||
| 2432 | function expects them to be of size int (i.e. 32). So to be able to | 2432 | function expects them to be of size int (i.e. 32). So to be able to |
| 2433 | use that function, put the data in the form it expects if format is 32. */ | 2433 | use that function, put the data in the form it expects if format is 32. */ |
| 2434 | 2434 | ||
| 2435 | if (event->format == 32 && event->format < BITS_PER_LONG) | 2435 | if (32 < BITS_PER_LONG && event->format == 32) |
| 2436 | { | 2436 | { |
| 2437 | for (i = 0; i < 5; ++i) /* There are only 5 longs in a ClientMessage. */ | 2437 | for (i = 0; i < 5; ++i) /* There are only 5 longs in a ClientMessage. */ |
| 2438 | idata[i] = (int) event->data.l[i]; | 2438 | idata[i] = (int) event->data.l[i]; |