comparison src/editfns.c @ 2994:b087b4fd6066

(Fcurrent_time_zone): Make `am' an int, not long.
author Richard M. Stallman <rms@gnu.org>
date Sun, 23 May 1993 22:41:44 +0000
parents 6fe71a039fce
children dc9f7a107e28
comparison
equal deleted inserted replaced
2993:423d4e4acb41 2994:b087b4fd6066
658 s = t->tm_zone; 658 s = t->tm_zone;
659 #endif 659 #endif
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 }
667 return Fcons (make_number (offset), Fcons (build_string (s), Qnil)); 667 return Fcons (make_number (offset), Fcons (build_string (s), Qnil));
668 } 668 }