2011-06-08 Paul Eggert <eggert@cs.ucla.edu>
+ * image.c (gif_load): Rename local to avoid shadowing.
+
* lisp.h (SAFE_ALLOCA_LISP): Check for integer overflow.
(struct Lisp_Save_Value): Use ptrdiff_t, not int, for 'integer' member.
* alloc.c (make_save_value): Integer argument is now of type
/* Which sub-image are we to display? */
{
- Lisp_Object index = image_spec_value (img->spec, QCindex, NULL);
- idx = INTEGERP (index) ? XFASTINT (index) : 0;
+ Lisp_Object image_number = image_spec_value (img->spec, QCindex, NULL);
+ idx = INTEGERP (image_number) ? XFASTINT (image_number) : 0;
if (idx < 0 || idx >= gif->ImageCount)
{
image_error ("Invalid image number `%s' in image `%s'",
- index, img->spec);
+ image_number, img->spec);
fn_DGifCloseFile (gif);
return 0;
}