From fb6428b7cc6e3746e1f94a95fd5501e0d0bd7ba0 Mon Sep 17 00:00:00 2001 From: mccallum Date: Tue, 26 Mar 1996 00:28:20 +0000 Subject: [PATCH] ([NSMutableData -resetBytesInRange:]): Cast to avoid warning. ([NSMutableData -initWithLength:]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1269 72102866-910b-0410-8b05-ffd578937521 --- Source/NSData.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/NSData.m b/Source/NSData.m index 8b478825d..b6ed4091e 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -331,7 +331,7 @@ static Class NSMutableData_concrete_class; atomically: (BOOL)useAuxiliaryFile { const char *theFileName; - const char *theRealFileName; + const char *theRealFileName = NULL; FILE *theFile; int c; @@ -512,7 +512,7 @@ static Class NSMutableData_concrete_class; - (id) initWithLength: (unsigned int)length { [self initWithCapacity:length]; - memset ([self bytes], 0, length); + memset ((char*)[self bytes], 0, length); return self; } @@ -566,7 +566,7 @@ static Class NSMutableData_concrete_class; - (void) resetBytesInRange: (NSRange)aRange { - memset([self bytes] + aRange.location, 0, aRange.length); + memset((char*)[self bytes] + aRange.location, 0, aRange.length); } // Serializing Data