cvs: php4 /ext/gd gd.c
| From: | Rasmus Lerdorf | Date: | Tue, 13 Nov 2001 13:53:12 +0000 |
| Subject: | cvs: php4 /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-8197@lists.php.net to get a copy of this message | ||
rasmus Tue Nov 13 08:53:12 2001 EDT
Modified files:
/php4/ext/gd gd.c
Log:
Be explicit here and cast it
Index: php4/ext/gd/gd.c
diff -u php4/ext/gd/gd.c:1.169 php4/ext/gd/gd.c:1.170
--- php4/ext/gd/gd.c:1.169 Sat Nov 10 10:06:09 2001
+++ php4/ext/gd/gd.c Tue Nov 13 08:53:11 2001
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.169 2001/11/10 15:06:09 rasmus Exp $ */
+/* $Id: gd.c,v 1.170 2001/11/13 13:53:11 rasmus Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -3534,8 +3534,8 @@
else {
y_ratio = x_ratio;
}
- dest_width = org_width / x_ratio;
- dest_height = org_height / y_ratio;
+ dest_width = (int)(org_width / x_ratio);
+ dest_height = (int)(org_height / y_ratio);
}
else {
x_ratio = (float) dest_width / (float) org_width;
@@ -3547,8 +3547,8 @@
else {
y_ratio = x_ratio;
}
- dest_width = org_width * x_ratio;
- dest_height = org_height * y_ratio;
+ dest_width = (int)(org_width * x_ratio);
+ dest_height = (int)(org_height * y_ratio);
}
im_tmp = gdImageCreate (dest_width, dest_height);