} else {
info_value = &info_data->value;
}
- for (index=0,vptr=value; index<length; index++,vptr+=php_tiff_bytes_per_format[format]) {
+ for (index=0,vptr=value; index<length; index++,(int)vptr+=php_tiff_bytes_per_format[format]) {
if (length>1) {
info_value = &info_data->value.list[index];
}
}
(*func_p)(im, i, fp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if(im->trueColor){
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, fp);
break;
+#endif
default:
(*func_p)(im, fp);
break;
}
(*func_p)(im, q, tmp);
break;
+#if HAVE_LIBGD20
case PHP_GDIMG_TYPE_GD:
if (im->trueColor) {
gdImageTrueColorToPalette(im,1,256);
}
(*func_p)(im, tmp);
break;
+#endif
default:
(*func_p)(im, tmp);
break;