Skip to content

Commit 01762e5

Browse files
committed
Adapt assertion as mbfl_strwidth returns a size_t
1 parent 68a5648 commit 01762e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mbstring/mbstring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2377,7 +2377,7 @@ PHP_FUNCTION(mb_strwidth)
23772377
}
23782378

23792379
n = mbfl_strwidth(&string);
2380-
ZEND_ASSERT(n >= 0);
2380+
ZEND_ASSERT(n != (size_t) -1);
23812381
RETVAL_LONG(n);
23822382
}
23832383
/* }}} */

0 commit comments

Comments
 (0)