Commit e5533da6 authored by Paul Eggert's avatar Paul Eggert

* lread.c (Fload): Don't compare a possibly-garbage time_t value.

parent 9910e595
2011-06-13 Paul Eggert <eggert@cs.ucla.edu>
* lread.c (Fload): Don't compare a possibly-garbage time_t value.
GLYPH_CODE_FACE returns EMACS_INT, not int.
* dispextern.h (merge_faces):
* xfaces.c (merge_faces):
......
......@@ -1203,10 +1203,13 @@ Return t if the file exists and loads successfully. */)
#ifdef DOS_NT
fmode = "rb";
#endif /* DOS_NT */
stat (SSDATA (efound), &s1);
SSET (efound, SBYTES (efound) - 1, 0);
result = stat (SSDATA (efound), &s2);
SSET (efound, SBYTES (efound) - 1, 'c');
result = stat (SSDATA (efound), &s1);
if (result == 0)
{
SSET (efound, SBYTES (efound) - 1, 0);
result = stat (SSDATA (efound), &s2);
SSET (efound, SBYTES (efound) - 1, 'c');
}
if (result == 0 && s1.st_mtime < s2.st_mtime)
{
......
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