aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-23 22:41:44 +0000
committerRichard M. Stallman1993-05-23 22:41:44 +0000
commit00fc94d02f2e98068a8b9f64f3fad3ca553c00a8 (patch)
tree5216eefe24bcd1447e27f80191f579e7515a7a06 /src/editfns.c
parent94823a5eee8343d3cf49a5fa8bbc4abca5e0c416 (diff)
downloademacs-00fc94d02f2e98068a8b9f64f3fad3ca553c00a8.tar.gz
emacs-00fc94d02f2e98068a8b9f64f3fad3ca553c00a8.zip
(Fcurrent_time_zone): Make `am' an int, not long.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 30d165ece61..69a045b8341 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -660,7 +660,7 @@ the data it can't find.")
660 if (!s) 660 if (!s)
661 { 661 {
662 /* No local time zone name is available; use "+-NNNN" instead. */ 662 /* No local time zone name is available; use "+-NNNN" instead. */
663 long am = (offset < 0 ? -offset : offset) / 60; 663 int am = (offset < 0 ? -offset : offset) / 60;
664 sprintf (buf, "%c%02d%02d", (offset < 0 ? '-' : '+'), am/60, am%60); 664 sprintf (buf, "%c%02d%02d", (offset < 0 ? '-' : '+'), am/60, am%60);
665 s = buf; 665 s = buf;
666 } 666 }