changeset 6336:f563b75e0dcf

* memxor.c (memxor): Fix compiler error.
author Simon Josefsson <simon@josefsson.org>
date Wed, 05 Oct 2005 14:58:54 +0000
parents 7eaa3cbec8e5
children 6a359f132ac2
files lib/ChangeLog lib/memxor.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog	Wed Oct 05 13:54:42 2005 +0000
+++ b/lib/ChangeLog	Wed Oct 05 14:58:54 2005 +0000
@@ -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>.
 
--- a/lib/memxor.c	Wed Oct 05 13:54:42 2005 +0000
+++ b/lib/memxor.c	Wed Oct 05 14:58:54 2005 +0000
@@ -30,7 +30,7 @@
   char *d = dest;
 
   for (; n > 0; n--)
-    *d++ ^= *src++;
+    *(char*)d++ ^= *(char*)src++;
 
   return dest;
 }