From d2ffeccd2543196d9d12af9d64259c50d4050bf1 Mon Sep 17 00:00:00 2001 From: CaS Date: Mon, 11 Feb 2002 09:54:01 +0000 Subject: [PATCH] Fix by michael hanni git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12489 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Source/NSObjCRuntime.m | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7419abff7..3b1e4073b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-02-10 Michael Hanni + + * 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 * Source/NSObject.m: changes to enable derived object KeyValueCoding diff --git a/Source/NSObjCRuntime.m b/Source/NSObjCRuntime.m index 4a5af4fd5..c753d4d02 100644 --- a/Source/NSObjCRuntime.m +++ b/Source/NSObjCRuntime.m @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -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; }