aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.h
diff options
context:
space:
mode:
authorPaul Eggert2011-06-01 23:15:15 -0700
committerPaul Eggert2011-06-01 23:15:15 -0700
commit84acfcf06be242f35063c719ca5643ad969437fd (patch)
tree37c7d16b9def0b1f64d9d879a8bfd9ec052c1ee9 /src/buffer.h
parent369b7e5ac5a6609433fc017d09e1f31750f033a7 (diff)
downloademacs-84acfcf06be242f35063c719ca5643ad969437fd.tar.gz
emacs-84acfcf06be242f35063c719ca5643ad969437fd.zip
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/buffer.h')
-rw-r--r--src/buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.h b/src/buffer.h
index 2f33065cd1a..8c64a24e804 100644
--- a/src/buffer.h
+++ b/src/buffer.h
@@ -545,7 +545,7 @@ struct buffer
545 -1 means visited file was nonexistent. 545 -1 means visited file was nonexistent.
546 0 means visited file modtime unknown; in no case complain 546 0 means visited file modtime unknown; in no case complain
547 about any mismatch on next save attempt. */ 547 about any mismatch on next save attempt. */
548 int modtime; 548 time_t modtime;
549 /* Size of the file when modtime was set. This is used to detect the 549 /* Size of the file when modtime was set. This is used to detect the
550 case where the file grew while we were reading it, so the modtime 550 case where the file grew while we were reading it, so the modtime
551 is still the same (since it's rounded up to seconds) but we're actually 551 is still the same (since it's rounded up to seconds) but we're actually