cvs: php-src(PHP_5_0) /ext/gd gd.c
| From: | Ilia Alshanetsky | Date: | Wed, 29 Dec 2004 21:40:42 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29702@lists.php.net to get a copy of this message | ||
iliaa Wed Dec 29 16:40:42 2004 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/gd gd.c
Log:
MFH: Fixed compiler warnings.
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.294.2.5&r2=1.294.2.6&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.294.2.5 php-src/ext/gd/gd.c:1.294.2.6
--- php-src/ext/gd/gd.c:1.294.2.5 Wed Dec 29 16:08:16 2004
+++ php-src/ext/gd/gd.c Wed Dec 29 16:40:42 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.294.2.5 2004/12/29 21:08:16 iliaa Exp $ */
+/* $Id: gd.c,v 1.294.2.6 2004/12/29 21:40:42 iliaa Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -3491,7 +3491,7 @@
#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 @@
#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 @@
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;
}