Commit 00fc94d0 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fcurrent_time_zone): Make `am' an int, not long.

parent 94823a5e
......@@ -660,7 +660,7 @@ the data it can't find.")
if (!s)
{
/* No local time zone name is available; use "+-NNNN" instead. */
long am = (offset < 0 ? -offset : offset) / 60;
int am = (offset < 0 ? -offset : offset) / 60;
sprintf (buf, "%c%02d%02d", (offset < 0 ? '-' : '+'), am/60, am%60);
s = buf;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment