File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -451,14 +451,14 @@ ZEND_FRAMELESS_FUNCTION(clamp, 3)
451451 }
452452
453453 if (zend_compare (zmax , zvalue ) == -1 ) {
454- RETURN_COPY_VALUE (zmax );
454+ RETURN_COPY (zmax );
455455 }
456456
457457 if (zend_compare (zvalue , zmin ) == -1 ) {
458- RETURN_COPY_VALUE (zmin );
458+ RETURN_COPY (zmin );
459459 }
460460
461- RETURN_COPY_VALUE (zvalue );
461+ RETURN_COPY (zvalue );
462462}
463463/* }}} */
464464
Original file line number Diff line number Diff line change @@ -49,13 +49,13 @@ float(2.5)
4949float(2.5)
5050float(1.3)
5151float(3.141592653589793)
52- double (NAN)
52+ float (NAN)
5353string(1) "c"
5454string(1) "d"
55552025-08-15
56562025-08-20
57572025-08-15
58582025-08-20
59- Argument #2 ($min) cannot be NAN
60- Argument #3 ($max) cannot be NAN
61- Argument #2 ($min) must be smaller than or equal to argument #3 ($max)
59+ clamp(): Argument #2 ($min) cannot be NAN
60+ clamp(): Argument #3 ($max) cannot be NAN
61+ clamp(): Argument #2 ($min) must be smaller than or equal to argument #3 ($max)
You can’t perform that action at this time.
0 commit comments