mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix by michael hanni
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12489 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5d661d3b9d
commit
d82bc8341f
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2002-02-10 Michael Hanni <mhanni@sprintmail.com>
|
||||
|
||||
* Source/NSObjCRuntime.m: changed NSAssert() to NSCAssert() from
|
||||
last change. Also added NSException.h include to make compile
|
||||
correctly and quietly.
|
||||
|
||||
2002-02-10 Manuel Guesdon <mguesdon@orange-concept.com>
|
||||
|
||||
* Source/NSObject.m: changes to enable derived object KeyValueCoding
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
|
||||
#include <config.h>
|
||||
#include <base/preface.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/NSObjCRuntime.h>
|
||||
#include <Foundation/NSString.h>
|
||||
#include <mframe.h>
|
||||
|
@ -129,7 +130,7 @@ GSGetInstanceVariable(id obj, NSString *iVarName, void *data)
|
|||
return NO;
|
||||
}
|
||||
//This very highly unprobable value can be used as a marker
|
||||
NSAssert(offset!=UINT_MAX,@"Bad Offset");
|
||||
NSCAssert(offset != UINT_MAX, @"Bad Offset");
|
||||
memcpy(data, ((void*)obj) + offset, size);
|
||||
return YES;
|
||||
}
|
||||
|
@ -146,7 +147,7 @@ GSSetInstanceVariable(id obj, NSString *iVarName, const void *data)
|
|||
return NO;
|
||||
}
|
||||
//This very highly unprobable value can be used as a marker
|
||||
NSAssert(offset!=UINT_MAX,@"Bad Offset");
|
||||
NSCAssert(offset != UINT_MAX, @"Bad Offset");
|
||||
memcpy(((void*)obj) + offset, data, size);
|
||||
return YES;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue