subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1139931 - /subversion/trunk/subversion/libsvn_subr/svn_base64.c
Date Sun, 26 Jun 2011 20:04:02 GMT
Author: stefan2
Date: Sun Jun 26 20:04:02 2011
New Revision: 1139931

URL: http://svn.apache.org/viewvc?rev=1139931&view=rev
Log:
Silence two signed / unsigned char assignment warnings.

* subversion/libsvn_subr/svn_base64.c
  (encode_line, decode_line): explicitly cast rhs to lhs

Found by: danielsh

Modified:
    subversion/trunk/subversion/libsvn_subr/svn_base64.c

Modified: subversion/trunk/subversion/libsvn_subr/svn_base64.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/svn_base64.c?rev=1139931&r1=1139930&r2=1139931&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/svn_base64.c (original)
+++ subversion/trunk/subversion/libsvn_subr/svn_base64.c Sun Jun 26 20:04:02 2011
@@ -94,7 +94,7 @@ static void
 encode_line(svn_stringbuf_t *str, const char *data)
 {
   /* Translate directly from DATA to STR->DATA. */
-  const unsigned char *in = data;
+  const unsigned char *in = (const unsigned char *)data;
   char *out = str->data + str->len;
   char *end = out + BASE64_LINELEN;
 
@@ -368,7 +368,7 @@ static svn_boolean_t
 decode_line(svn_stringbuf_t *str, const char **data)
 {
   /* Decode up to BYTES_PER_LINE bytes directly from *DATA into STR->DATA. */
-  const char *p = *data;
+  const unsigned char *p = *(const unsigned char **)data;
   char *out = str->data + str->len;
   char *end = out + BYTES_PER_LINE;
 
@@ -382,7 +382,7 @@ decode_line(svn_stringbuf_t *str, const 
   /* Update string sizes and positions. */
   str->len = out - str->data;
   *out = '\0';
-  *data = p;
+  *data = (const char *)p;
   
   /* Return FALSE, if the caller should continue the decoding process
      using the slow standard method. */



Mime
View raw message