Quick hack to try to fix initialisation

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29393 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2010-01-24 17:54:31 +00:00
parent 49a063af84
commit a15a02db18

View file

@ -717,6 +717,20 @@ static Class doubleNumberClass;
return RETAIN(self);
}
- (id) initWithBytes: (const void*)data objCType: (const char*)type
{
if (GSObjCClass(self) == abstractClass)
{
Class c = [abstractClass valueClassWithObjCType: type];
[self release];
self = (id)NSAllocateObject(c, 0, GSObjCZone(self));
return [self initWithBytes: data objCType: type];
}
[self subclassResponsibility: _cmd];
return nil;
}
- (id) initWithChar: (signed char)value
{
RELEASE(self);