From 12c2113b3e2432c1ccb29ec9f9606b390a6d1c2b Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 29 Dec 2004 21:40:34 +0000 Subject: [PATCH] Fixed compiler warnings. --- ext/gd/gd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 83b2746d3a..cbb90893c0 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3491,7 +3491,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; } @@ -3500,7 +3500,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; } @@ -3542,7 +3542,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; } -- 2.50.1