Skip to content

Commit c347899

Browse files
committed
Change to unsigned char
To match the 0 to 255 range.
1 parent 2032b9f commit c347899

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/037.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ can make an image from memory
44
<?php if (!extension_loaded("vips")) print "skip"; ?>
55
--FILE--
66
<?php
7-
$binary_str = pack("c*", ...array_fill(0, 200, 0));
7+
$binary_str = pack("C*", ...array_fill(0, 200, 0));
88
$image = vips_image_new_from_memory($binary_str, 20, 10, 1, "uchar")["out"];
99
$width = vips_image_get($image, "width")["out"];
1010
$height = vips_image_get($image, "height")["out"];

tests/038.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ can write to memory
44
<?php if (!extension_loaded("vips")) print "skip"; ?>
55
--FILE--
66
<?php
7-
$binary_str = pack("c*", ...array_fill(0, 200, 0));
7+
$binary_str = pack("C*", ...array_fill(0, 200, 0));
88
$image = vips_image_new_from_memory($binary_str, 20, 10, 1, "uchar")["out"];
99
$mem_str = vips_image_write_to_memory($image);
1010

0 commit comments

Comments
 (0)