]> granicus.if.org Git - php/commitdiff
(char *) vptr += expr; is refused by the IRIX compiler, so we use
authorSascha Schumann <sas@php.net>
Sun, 22 Dec 2002 16:34:13 +0000 (16:34 +0000)
committerSascha Schumann <sas@php.net>
Sun, 22 Dec 2002 16:34:13 +0000 (16:34 +0000)
vptr = (char *) vptr + expr; instead.

ext/exif/exif.c

index 66b07e97a945aa563cd94728fe06471a7b431053..4d8e952c236f14400bd9a7c90f31ea8d2b624a00 100644 (file)
@@ -1630,7 +1630,7 @@ static void exif_iif_add_value(image_info_type *image_info, int section_index, c
                        } else {
                                info_value = &info_data->value;
                        }
-                       for (idex=0,vptr=value; idex<length; idex++,(char *)vptr+=php_tiff_bytes_per_format[format]) {
+                       for (idex=0,vptr=value; idex<length; idex++,vptr=(char *) vptr + php_tiff_bytes_per_format[format]) {
                                if (length>1) {
                                        info_value = &info_data->value.list[idex];
                                }