Commit d4e3e4d3 authored by Paul Eggert's avatar Paul Eggert

* dispextern.h (struct image): Don't assume time_t <= unsigned long.

* image.c (clear_image_cache): Likewise.
parent f6a24d19
2011-05-13 Paul Eggert <eggert@cs.ucla.edu>
* dispextern.h (struct image): Don't assume time_t <= unsigned long.
* image.c (clear_image_cache): Likewise.
2011-05-12 Paul Eggert <eggert@cs.ucla.edu>
* term.c (term_mouse_position): Don't assume time_t wraparound.
......
......@@ -2709,7 +2709,7 @@ struct image
{
/* The time in seconds at which the image was last displayed. Set
in prepare_image_for_display. */
unsigned long timestamp;
time_t timestamp;
/* Pixmaps of the image. */
Pixmap pixmap, mask;
......
......@@ -1523,7 +1523,7 @@ clear_image_cache (struct frame *f, Lisp_Object filter)
{
/* Free cache based on timestamp. */
EMACS_TIME t;
unsigned long old;
time_t old;
int delay, nimages = 0;
for (i = 0; i < c->used; ++i)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment