kalle Wed May 13 16:29:03 2009 UTC Modified files: /php-src/ext/standard uuencode.c Log: Fix compiler warnings, safe_emalloc expects size_t, not double as ceil returns http://cvs.php.net/viewvc.cgi/php-src/ext/standard/uuencode.c?r1=1.15&r2=1.16&diff_format=u Index: php-src/ext/standard/uuencode.c diff -u php-src/ext/standard/uuencode.c:1.15 php-src/ext/standard/uuencode.c:1.16 --- php-src/ext/standard/uuencode.c:1.15 Tue Mar 10 23:39:41 2009 +++ php-src/ext/standard/uuencode.c Wed May 13 16:29:03 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: uuencode.c,v 1.15 2009/03/10 23:39:41 helly Exp $ */ +/* $Id: uuencode.c,v 1.16 2009/05/13 16:29:03 kalle Exp $ */ /* * Portions of this code are based on Berkeley's uuencode/uudecode @@ -71,7 +71,7 @@ char *p, *s, *e, *ee; /* encoded length is ~ 38% greater then the original */ - p = *dest = safe_emalloc(ceil(src_len * 1.38), 1, 46); + p = *dest = safe_emalloc((size_t) ceil(src_len * 1.38), 1, 46); s = src; e = src + src_len; @@ -129,7 +129,7 @@ int len, total_len=0; char *s, *e, *p, *ee; - p = *dest = safe_emalloc(ceil(src_len * 0.75), 1, 1); + p = *dest = safe_emalloc((size_t) ceil(src_len * 0.75), 1, 1); s = src; e = src + src_len;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php