diff options
| author | Paul Eggert | 2011-07-27 17:48:01 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-27 17:48:01 -0700 |
| commit | 044c22e545acef592ed95e4e3bb9f8aeff67291a (patch) | |
| tree | 167a4c706b62b12ea979bdf6ad47e70b66bb0394 /src/gtkutil.c | |
| parent | dbf38e02c9ade4979418f24a99962cfef170b957 (diff) | |
| parent | 8265d3bb30544e58683fc16e23f9908f3d5d0abc (diff) | |
| download | emacs-044c22e545acef592ed95e4e3bb9f8aeff67291a.tar.gz emacs-044c22e545acef592ed95e4e3bb9f8aeff67291a.zip | |
Merge: Integer signedness and overflow and related fixes.
Fixes: debbugs:9079
Diffstat (limited to 'src/gtkutil.c')
| -rw-r--r-- | src/gtkutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtkutil.c b/src/gtkutil.c index 35b366222de..8826b08851a 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -269,8 +269,8 @@ xg_get_pixbuf_from_pixmap (FRAME_PTR f, Pixmap pix) | |||
| 269 | GDK_COLORSPACE_RGB, | 269 | GDK_COLORSPACE_RGB, |
| 270 | FALSE, | 270 | FALSE, |
| 271 | xim->bitmap_unit, | 271 | xim->bitmap_unit, |
| 272 | (int) width, | 272 | width, |
| 273 | (int) height, | 273 | height, |
| 274 | xim->bytes_per_line, | 274 | xim->bytes_per_line, |
| 275 | NULL, | 275 | NULL, |
| 276 | NULL); | 276 | NULL); |
| @@ -3646,7 +3646,7 @@ xg_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, | |||
| 3646 | gtk_adjustment_set_page_size (adj, size); | 3646 | gtk_adjustment_set_page_size (adj, size); |
| 3647 | gtk_adjustment_set_step_increment (adj, new_step); | 3647 | gtk_adjustment_set_step_increment (adj, new_step); |
| 3648 | /* Assume a page increment is about 95% of the page size */ | 3648 | /* Assume a page increment is about 95% of the page size */ |
| 3649 | gtk_adjustment_set_page_increment (adj,(int) (0.95*size)); | 3649 | gtk_adjustment_set_page_increment (adj, size - size / 20); |
| 3650 | changed = 1; | 3650 | changed = 1; |
| 3651 | } | 3651 | } |
| 3652 | } | 3652 | } |