mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-12 00:51:08 +00:00
([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
This commit is contained in:
parent
ea1e49af1b
commit
60bd74fd01
1 changed files with 3 additions and 3 deletions
|
@ -331,7 +331,7 @@ static Class NSMutableData_concrete_class;
|
||||||
atomically: (BOOL)useAuxiliaryFile
|
atomically: (BOOL)useAuxiliaryFile
|
||||||
{
|
{
|
||||||
const char *theFileName;
|
const char *theFileName;
|
||||||
const char *theRealFileName;
|
const char *theRealFileName = NULL;
|
||||||
FILE *theFile;
|
FILE *theFile;
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
|
@ -512,7 +512,7 @@ static Class NSMutableData_concrete_class;
|
||||||
- (id) initWithLength: (unsigned int)length
|
- (id) initWithLength: (unsigned int)length
|
||||||
{
|
{
|
||||||
[self initWithCapacity:length];
|
[self initWithCapacity:length];
|
||||||
memset ([self bytes], 0, length);
|
memset ((char*)[self bytes], 0, length);
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -566,7 +566,7 @@ static Class NSMutableData_concrete_class;
|
||||||
|
|
||||||
- (void) resetBytesInRange: (NSRange)aRange
|
- (void) resetBytesInRange: (NSRange)aRange
|
||||||
{
|
{
|
||||||
memset([self bytes] + aRange.location, 0, aRange.length);
|
memset((char*)[self bytes] + aRange.location, 0, aRange.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Serializing Data
|
// Serializing Data
|
||||||
|
|
Loading…
Reference in a new issue