From fd625c96d6fd491526ad9317c8b70bcb0124d1fc Mon Sep 17 00:00:00 2001 From: Klaas Pieter Annema Date: Tue, 4 May 2010 19:00:09 +0200 Subject: [PATCH] made CPDecimalNumber a subclass of CPNumber --- Foundation/CPDecimalNumber.j | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Foundation/CPDecimalNumber.j b/Foundation/CPDecimalNumber.j index edee8e495..19f6f0b67 100644 --- a/Foundation/CPDecimalNumber.j +++ b/Foundation/CPDecimalNumber.j @@ -158,11 +158,18 @@ _cappdefaultDcmHandler = [CPDecimalNumberHandler decimalNumberHandlerWithRoundin mathematical operations to go with it. This class is mutable. */ -@implementation CPDecimalNumber : CPObject + + +@implementation CPDecimalNumber : CPNumber { CPDecimal _data; } ++ (id)alloc +{ + return class_createInstance(self); +} + // initializers - (id)init {