* memxor.c (memxor): Fix compiler error.
authorSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 14:58:54 +0000 (14:58 +0000)
committerSimon Josefsson <simon@josefsson.org>
Wed, 5 Oct 2005 14:58:54 +0000 (14:58 +0000)
lib/ChangeLog
lib/memxor.c

index 5ce69c4..cba01e6 100644 (file)
@@ -1,5 +1,7 @@
 2005-10-05  Simon Josefsson  <jas@extundo.com>
 
+       * memxor.c (memxor): Fix compiler error.
+
        * md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
        <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
 
index ac922a8..3546011 100644 (file)
@@ -30,7 +30,7 @@ memxor (void *restrict dest, const void *restrict src, size_t n)
   char *d = dest;
 
   for (; n > 0; n--)
-    *d++ ^= *src++;
+    *(char*)d++ ^= *(char*)src++;
 
   return dest;
 }