cvs: php-src /ext/gd gd.c
| From: | Ilia Alshanetsky | Date: | Wed, 29 Dec 2004 21:40:34 +0000 |
| Subject: | cvs: php-src /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-29701@lists.php.net to get a copy of this message | ||
iliaa Wed Dec 29 16:40:34 2004 EDT
Modified files:
/php-src/ext/gd gd.c
Log:
Fixed compiler warnings.
http://cvs.php.net/diff.php/php-src/ext/gd/gd.c?r1=1.300&r2=1.301&ty=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.300 php-src/ext/gd/gd.c:1.301
--- php-src/ext/gd/gd.c:1.300 Wed Dec 29 16:07:59 2004
+++ php-src/ext/gd/gd.c Wed Dec 29 16:40:34 2004
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.300 2004/12/29 21:07:59 iliaa Exp $ */
+/* $Id: gd.c,v 1.301 2004/12/29 21:40:34 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;
}