diff options
| author | Paul Eggert | 2011-06-18 11:12:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-18 11:12:25 -0700 |
| commit | 45aebb64558b304b7bff7ccce370f801663291d5 (patch) | |
| tree | 0d76df17cdc49ceba875511b5dc683ce9c26d22c /src | |
| parent | f2ed8a709551a7125d2e024757262c5bf770766b (diff) | |
| download | emacs-45aebb64558b304b7bff7ccce370f801663291d5.tar.gz emacs-45aebb64558b304b7bff7ccce370f801663291d5.zip | |
* image.c (xbm_image_p): Don't assume stated width and height fit in int.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/image.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 62d6a5b4a04..c034bba6fa8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> | 1 | 2011-06-18 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 2 | ||
| 3 | * image.c (xbm_image_p): Don't assume stated width and height fit in int. | ||
| 4 | |||
| 3 | * lisp.h (lint_assume): New macro. | 5 | * lisp.h (lint_assume): New macro. |
| 4 | * composite.c (composition_gstring_put_cache): | 6 | * composite.c (composition_gstring_put_cache): |
| 5 | * ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0. | 7 | * ftfont.c (ftfont_shape_by_flt): Use it to pacify GCC 4.6.0. |
diff --git a/src/image.c b/src/image.c index 495bfdc0eef..352f8c486e4 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -2308,7 +2308,7 @@ xbm_image_p (Lisp_Object object) | |||
| 2308 | else | 2308 | else |
| 2309 | { | 2309 | { |
| 2310 | Lisp_Object data; | 2310 | Lisp_Object data; |
| 2311 | int width, height; | 2311 | EMACS_INT width, height; |
| 2312 | 2312 | ||
| 2313 | /* Entries for `:width', `:height' and `:data' must be present. */ | 2313 | /* Entries for `:width', `:height' and `:data' must be present. */ |
| 2314 | if (!kw[XBM_WIDTH].count | 2314 | if (!kw[XBM_WIDTH].count |
| @@ -2324,7 +2324,7 @@ xbm_image_p (Lisp_Object object) | |||
| 2324 | data. */ | 2324 | data. */ |
| 2325 | if (VECTORP (data)) | 2325 | if (VECTORP (data)) |
| 2326 | { | 2326 | { |
| 2327 | int i; | 2327 | EMACS_INT i; |
| 2328 | 2328 | ||
| 2329 | /* Number of elements of the vector must be >= height. */ | 2329 | /* Number of elements of the vector must be >= height. */ |
| 2330 | if (ASIZE (data) < height) | 2330 | if (ASIZE (data) < height) |