summaryrefslogtreecommitdiff
path: root/src/undo.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-06 18:57:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-06 18:57:42 -0700
commit31571fd712d8c1796f7d31739f1b48cf25948d64 (patch)
tree36e8f03e132306f2824b8711827fcd8a6514279a /src/undo.c
parent4516fbef7207ca23ca72da28d060dad979319310 (diff)
downloademacs-31571fd712d8c1796f7d31739f1b48cf25948d64.tar.gz
Do not require float-time's arg to fit in time_t (Bug#11825).
This works better on hosts where time_t is unsigned, and where float-time is applied to the (negative) difference between two times. * editfns.c (decode_time_components): Last arg is now double *, not int *, and means to store all the result as a double, without worrying about whether the seconds part fits in time_t. All callers changed. (lisp_time_argument): Remove last int * arg, as it's no longer needed. All callers changed. (Ffloat_time): Do not fail merely because the specified time falls outside of time_t range.
Diffstat (limited to 'src/undo.c')
-rw-r--r--src/undo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/undo.c b/src/undo.c
index c4ef557a221..bada46563a0 100644
--- a/src/undo.c
+++ b/src/undo.c
@@ -521,7 +521,7 @@ Return what remains of the list. */)
(mod_time, 0,
XINT (XCAR (XCDR (XCDR (XCDR (cdr))))) / 1000);
else
- mod_time = lisp_time_argument (cdr, 0);
+ mod_time = lisp_time_argument (cdr);
if (current_buffer->base_buffer)
base_buffer = current_buffer->base_buffer;