Skip to content

Commit 1b4f7c3

Browse files
committed
Fixed #68711
1 parent e3012d0 commit 1b4f7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ PHP_FUNCTION(unpack)
736736
case 'A': {
737737
/* A will strip any trailing whitespace */
738738
char padn = '\0'; char pads = ' '; char padt = '\t'; char padc = '\r'; char padl = '\n';
739-
size_t len = inputlen - inputpos; /* Remaining string */
739+
zend_long len = inputlen - inputpos; /* Remaining string */
740740

741741
/* If size was given take minimum of len and size */
742742
if ((size >= 0) && (len > size)) {

0 commit comments

Comments
 (0)