apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543569 - in /apr/apr-iconv/trunk/ces: ucs2-internal.c ucs4-internal.c
Date Fri, 01 Jun 2007 18:31:00 GMT
Author: wrowe
Date: Fri Jun  1 11:30:59 2007
New Revision: 543569

URL: http://svn.apache.org/viewvc?view=rev&rev=543569
Log:
Caught these - missing casts to 2byte pointers from byte pointers.

Modified:
    apr/apr-iconv/trunk/ces/ucs2-internal.c
    apr/apr-iconv/trunk/ces/ucs4-internal.c

Modified: apr/apr-iconv/trunk/ces/ucs2-internal.c
URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/ces/ucs2-internal.c?view=diff&rev=543569&r1=543568&r2=543569
==============================================================================
--- apr/apr-iconv/trunk/ces/ucs2-internal.c (original)
+++ apr/apr-iconv/trunk/ces/ucs2-internal.c Fri Jun  1 11:30:59 2007
@@ -70,7 +70,7 @@
 convert_to_ucs(struct iconv_ces *ces,
 	const unsigned char **inbuf, apr_size_t *inbytesleft)
 {
-	const ucs2_t *ret = *inbuf;
+	const ucs2_t *ret = (const ucs2_t *)*inbuf;
 	if (*inbytesleft < sizeof(ucs2_t))
 		return UCS_CHAR_NONE;	/* Not enough bytes in the input buffer */
 	(*inbytesleft) -= sizeof(ucs2_t);

Modified: apr/apr-iconv/trunk/ces/ucs4-internal.c
URL: http://svn.apache.org/viewvc/apr/apr-iconv/trunk/ces/ucs4-internal.c?view=diff&rev=543569&r1=543568&r2=543569
==============================================================================
--- apr/apr-iconv/trunk/ces/ucs4-internal.c (original)
+++ apr/apr-iconv/trunk/ces/ucs4-internal.c Fri Jun  1 11:30:59 2007
@@ -68,7 +68,7 @@
 convert_to_ucs(struct iconv_ces *ces,
 	const unsigned char **inbuf, apr_size_t *inbytesleft)
 {
-	const ucs4_t *ret = *inbuf;
+	const ucs4_t *ret = (const ucs4_t *)*inbuf;
 	if (*inbytesleft < sizeof(ucs4_t))
 		return UCS_CHAR_NONE;	/* Not enough bytes in the input buffer */
 	(*inbytesleft) -= sizeof(ucs4_t);



Mime
View raw message