gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: segfault...


From: Richard Frith-Macdonald
Subject: Re: segfault...
Date: Sat, 18 Nov 2000 07:50:33 +0000

On Friday, November 17, 2000, at 08:28 PM, address@hidden wrote:

> Ciao! 
>  
> I've discovered a seg fault with the latest core. This code: 
>  
>   NSLog(@"to val %@ %@", NSStringFromClass([val class]), val); 
>   NSLog(@"to oldval %@ %@", NSStringFromClass([oldVal class]), oldVal); 
>   NSLog(@"to isEqual %d", [val isEqual:oldVal]); 
>  
> produces the segfault at -isEqual: 
>  
> Nov 17 20:29:20 Gioco[18934] to val NSDecimalNumber 24 
> Nov 17 20:29:20 Gioco[18934] to oldval NSIntNumber 12 
> Segmentation fault (core dumped) 
>  
> I haven't found the time to fix it yet. :( 
> Thanks.

I can't reproduce it.

I created 'val' using [NSDecimalNumber -decimalNumberWithString: @"24"]
and oldVal using [NSNumber numberWithInt: 12]
then copied your three NSLog() lines exactly.

It told me 'to isEqual: 0' as expected.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]