Skip to content

Commit 25308f6

Browse files
committed
fix build warning of type mismatch
Signed-off-by: Benstone Zhang <[email protected]>
1 parent 16f3c7e commit 25308f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/exif/exif.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4389,7 +4389,7 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
43894389
if (remain) {
43904390
memcpy(data, buf + box_header_size, remain);
43914391
}
4392-
if (exif_read_from_stream_file_looped(ImageInfo->infile, data + remain, limit - remain) == limit - remain) {
4392+
if (exif_read_from_stream_file_looped(ImageInfo->infile, (char*)(data + remain), limit - remain) == limit - remain) {
43934393
exif_isobmff_parse_meta(data, data + limit, &pos);
43944394
}
43954395
efree(data);
@@ -4398,8 +4398,8 @@ static bool exif_scan_HEIF_header(image_info_type *ImageInfo, unsigned char *buf
43984398
(php_stream_seek(ImageInfo->infile, pos.offset + 2, SEEK_SET) >= 0)) {
43994399
limit = pos.size - 2;
44004400
data = (unsigned char *)safe_emalloc(1, limit, 0);
4401-
if (exif_read_from_stream_file_looped(ImageInfo->infile, data, limit) == limit) {
4402-
exif_process_APP1(ImageInfo, data, limit, pos.offset + 2);
4401+
if (exif_read_from_stream_file_looped(ImageInfo->infile, (char*)data, limit) == limit) {
4402+
exif_process_APP1(ImageInfo, (char*)data, limit, pos.offset + 2);
44034403
ret = true;
44044404
}
44054405
efree(data);

0 commit comments

Comments
 (0)