mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
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:
parent
49a063af84
commit
a15a02db18
1 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue