Skip to content

Commit 1ae79ba

Browse files
committed
Switch from RETURN_COPY to RETURN_COPY_VALUE
1 parent bae3315 commit 1ae79ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/standard/math.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,11 +245,11 @@ PHP_FUNCTION(clamp)
245245
}
246246

247247
if (zend_compare(zmax, zvalue) == -1) {
248-
RETURN_COPY(zmax);
248+
RETURN_COPY_VALUE(zmax);
249249
} else if (zend_compare(zvalue, zmin) == -1) {
250-
RETURN_COPY(zmin);
250+
RETURN_COPY_VALUE(zmin);
251251
} else {
252-
RETURN_COPY(zvalue);
252+
RETURN_COPY_VALUE(zvalue);
253253
}
254254
}
255255
/* }}} */

0 commit comments

Comments
 (0)