cvs: php4 /ext/standard string.c
| From: | Dan Kalowsky | Date: | Thu, 05 Sep 2002 21:29:40 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-13866@lists.php.net to get a copy of this message | ||
kalowsky Thu Sep 5 17:29:40 2002 EDT
Modified files:
/php4/ext/standard string.c
Log:
silence a windows build warning
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.289 php4/ext/standard/string.c:1.290
--- php4/ext/standard/string.c:1.289 Thu Sep 5 10:00:28 2002
+++ php4/ext/standard/string.c Thu Sep 5 17:29:39 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.289 2002/09/05 14:00:28 iliaa Exp $ */
+/* $Id: string.c,v 1.290 2002/09/05 21:29:39 kalowsky Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -641,7 +641,7 @@
/* Multiple character line break or forced cut */
if (linelength > 0) {
/* Add extra 10% to accomodate strings with unpredicatable number of breaks */
- newtextlen = textlen + (textlen/linelength + 1) * breakcharlen * 1.1 + 1;
+ newtextlen = textlen + (int)((textlen/linelength + 1) * breakcharlen * 1.1) + 1;
}
else {
newtextlen = textlen * (breakcharlen + 1) + 1;