1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Attempt to fix some compiler warnings.

This commit is contained in:
Robert Haas
2015-04-29 14:02:01 -04:00
parent eb010637dd
commit ef3f9e642d
2 changed files with 2 additions and 3 deletions

View File

@ -2507,7 +2507,7 @@ DCH_to_char(FormatNode *node, bool is_interval, TmToChar *in, char *out, Oid col
s += strlen(s);
if (tm->tm_gmtoff % SECS_PER_HOUR != 0)
{
sprintf(s, ":%02ld", abs(tm->tm_gmtoff % SECS_PER_HOUR) / SECS_PER_MINUTE);
sprintf(s, ":%02d", abs(tm->tm_gmtoff % SECS_PER_HOUR) / SECS_PER_MINUTE);
s += strlen(s);
}
break;