Skip to content

Commit

Permalink
cast to int to disable compilation warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen authored and nikic committed Jun 8, 2018
1 parent 695b819 commit ad52ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/date/php_date.c
Original file line number Diff line number Diff line change
Expand Up @@ -2412,8 +2412,8 @@ static void php_timezone_to_string(php_timezone_obj *tzobj, zval *zv)

ZSTR_LEN(tmpstr) = snprintf(ZSTR_VAL(tmpstr), sizeof("+05:00"), "%c%02d:%02d",
utc_offset < 0 ? '-' : '+',
abs(utc_offset / 3600),
abs(((utc_offset % 3600) / 60)));
abs((int)(utc_offset / 3600)),
abs((int)(utc_offset % 3600) / 60));

ZVAL_NEW_STR(zv, tmpstr);
}
Expand Down

0 comments on commit ad52ec3

Please sign in to comment.