HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Overflow, signedness and related fixes for images.
[bpt/emacs.git]
/
src
/
xdisp.c
diff --git
a/src/xdisp.c
b/src/xdisp.c
index
5285d94
..
50f6f79
100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-21119,7
+21119,7
@@
calc_pixel_width_or_height (double *res, struct it *it, Lisp_Object prop,
if (FRAME_WINDOW_P (it->f)
&& valid_image_p (prop))
{
-
in
t id = lookup_image (it->f, prop);
+
ptrdiff_
t id = lookup_image (it->f, prop);
struct image *img = IMAGE_FROM_ID (it->f, id);
return OK_PIXELS (width_p ? img->width : img->height);