From 620f0bbef2bd56f36a4a44d4dc0400290820e04d Mon Sep 17 00:00:00 2001 From: leitner Date: Sat, 24 Nov 2001 21:27:21 +0000 Subject: [PATCH] remove more void* arithmetic --- byte/byte_copyr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/byte/byte_copyr.c b/byte/byte_copyr.c index b9f804a..e474454 100644 --- a/byte/byte_copyr.c +++ b/byte/byte_copyr.c @@ -3,7 +3,7 @@ /* byte_copyr copies in[len-1] to out[len-1], in[len-2] to out[len-2], * ... and in[0] to out[0] */ void byte_copyr(void* out, unsigned int len, const void* in) { - register char* s=out+len; + register char* s=(char*)out+len; register const char* t=in; register const char* u=t+len; for (;;) {