emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r115596: Minor fixes for recent openp changes.


From: Eli Zaretskii
Subject: Re: [Emacs-diffs] trunk r115596: Minor fixes for recent openp changes.
Date: Thu, 19 Dec 2013 19:00:34 +0200

> Date: Thu, 19 Dec 2013 08:18:24 +0100
> From: Jarek Czekalski <address@hidden>
> 
> src/lread.c:
>    /* The last-modified time of the newest matching file found.
>       Initialize it to something less than all valid timestamps.  */
>    struct timespec save_mtime = make_timespec (TYPE_MINIMUM (time_t), -1);
> 
> But -1 makes this struct invalid. How can we be sure that comparing an 
> invalid timestamp to a valid timestamp gives us the expected result?

Look at timespec_cmp, and you will know.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]