summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/gd/gd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c
index eeca09ebae..e7c0e7cafe 100644
--- a/ext/gd/gd.c
+++ b/ext/gd/gd.c
@@ -5218,7 +5218,7 @@ PHP_FUNCTION(imageaffine)
PHP_FUNCTION(imageaffinematrixget)
{
double affine[6];
- gdAffineStandardMatrix type;
+ long type;
zval *options;
zval **tmp;
int res = GD_FALSE, i;
@@ -5227,7 +5227,7 @@ PHP_FUNCTION(imageaffinematrixget)
return;
}
- switch(type) {
+ switch((gdAffineStandardMatrix)type) {
case GD_AFFINE_TRANSLATE:
case GD_AFFINE_SCALE: {
double x, y;
@@ -5277,7 +5277,7 @@ PHP_FUNCTION(imageaffinematrixget)
}
default:
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid type for element %i", type);
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid type for element %li", type);
RETURN_FALSE;
}
@@ -5367,7 +5367,7 @@ PHP_FUNCTION(imagesetinterpolation)
{
zval *IM;
gdImagePtr im;
- gdInterpolationMethod method = GD_BILINEAR_FIXED;
+ long method = GD_BILINEAR_FIXED;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|l", &IM, &method) == FAILURE) {
return;