summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-06-01 23:15:15 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-06-01 23:15:15 -0700
commit84acfcf06be242f35063c719ca5643ad969437fd (patch)
tree37c7d16b9def0b1f64d9d879a8bfd9ec052c1ee9 /src/fileio.c
parent369b7e5ac5a6609433fc017d09e1f31750f033a7 (diff)
downloademacs-84acfcf06be242f35063c719ca5643ad969437fd.tar.gz
Don't assume time_t can fit into int.
* buffer.h (struct buffer.modtime): Now time_t, not int. * fileio.c (Fvisited_file_modtime): No need for time_t cast now. * undo.c (Fprimitive_undo): Use time_t, not int, for time_t value.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 7e6fd8c82a8..94894b97a6e 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4990,7 +4990,7 @@ See Info node `(elisp)Modification Time' for more details. */)
{
if (! current_buffer->modtime)
return make_number (0);
- return make_time ((time_t) current_buffer->modtime);
+ return make_time (current_buffer->modtime);
}
DEFUN ("set-visited-file-modtime", Fset_visited_file_modtime,