From: Ilia Alshanetsky Date: Wed, 29 Dec 2004 21:41:07 +0000 (+0000) Subject: MFH: Fixed compiler warnings. X-Git-Tag: php-4.3.11RC1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=948be2022ad5667b13bcdc1edd7f2505e664b8d0;p=php MFH: Fixed compiler warnings. --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 04937e2fb3..3104202780 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3376,7 +3376,7 @@ PHP_FUNCTION(imagepstext) #else if (_fg < 0 || _fg > gdImageColorsTotal(bg_img)) { #endif - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Foreground color index %d out of range", _fg); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Foreground color index %ld out of range", _fg); RETURN_FALSE; } @@ -3385,7 +3385,7 @@ PHP_FUNCTION(imagepstext) #else if (_bg < 0 || _bg > gdImageColorsTotal(bg_img)) { #endif - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Background color index %d out of range", _bg); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Background color index %ld out of range", _bg); RETURN_FALSE; } @@ -3428,7 +3428,7 @@ PHP_FUNCTION(imagepstext) T1_AASetLevel(T1_AA_HIGH); break; default: - php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value %d as number of steps for antialiasing", aa_steps); + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid value %ld as number of steps for antialiasing", aa_steps); RETURN_FALSE; }