Skip to content

Commit 68bf5d1

Browse files
committed
No need to check for "-" sign on unsigned number
1 parent c0bb229 commit 68bf5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/math.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ PHPAPI zend_string *_php_math_number_format_long(zend_long num, int dec, const c
12171217
topad = 0;
12181218
while (s >= ZSTR_VAL(tmpbuf)) {
12191219
cur_char = *s--;
1220-
if (roundup && cur_char != '-') {
1220+
if (roundup) {
12211221
if (cur_char < '9') {
12221222
cur_char++;
12231223
roundup = 0;

0 commit comments

Comments
 (0)