aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-04-18 23:34:43 -0700
committerPaul Eggert2011-04-18 23:34:43 -0700
commit2172544bcd6f38bc7c0888a148a6dc8a903314c0 (patch)
treeebbb7be8a76ac40bd72537cff5f70ac07aa48d0b /src
parente50d64ebfa2e0dbc563ba35cd048af77beacf000 (diff)
downloademacs-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')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfns.c2
-rw-r--r--src/xselect.c4
3 files changed, 7 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ef511ffc211..2b2a9510435 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-04-19 Paul Eggert <eggert@cs.ucla.edu> 12011-04-19 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * xfns.c (Fx_window_property): Simplify a bit,
4 to make a bit faster and to avoid GCC 4.6.0 warning.
5 * xselect.c (x_get_window_property, x_handle_dnd_message): Likewise.
6
3 * fns.c (internal_equal): Don't assume size_t fits in int. 7 * fns.c (internal_equal): Don't assume size_t fits in int.
4 8
5 * alloc.c (compact_small_strings): Tighten assertion a little. 9 * alloc.c (compact_small_strings): Tighten assertion a little.
diff --git a/src/xfns.c b/src/xfns.c
index 7a575150687..f3dc493ff85 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4352,7 +4352,7 @@ no value of TYPE (always string in the MS Windows case). */)
4352 property and those are indeed in 32 bit quantities if format is 4352 property and those are indeed in 32 bit quantities if format is
4353 32. */ 4353 32. */
4354 4354
4355 if (actual_format == 32 && actual_format < BITS_PER_LONG) 4355 if (32 < BITS_PER_LONG && actual_format == 32)
4356 { 4356 {
4357 unsigned long i; 4357 unsigned long i;
4358 int *idata = (int *) tmp_data; 4358 int *idata = (int *) tmp_data;
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];