mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-26 07:11:34 -08:00
(Fcurrent_time_zone): Make `am' an int, not long.
This commit is contained in:
parent
94823a5eee
commit
00fc94d02f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue