[Cuis-dev] LargeNegativeInteger --- extra minus signs when printing

Andres Valloud ten at smallinteger.com
Tue Sep 14 18:29:00 PDT 2021


Actually I'm starting to think that printOn:base:nDigits: should be 
private in LargePositiveInteger, rather than public.

On 9/14/21 6:07 PM, Andres Valloud via Cuis-dev wrote:
> Hi, consider this test case.
> 
> | ws |
> ws := String new writeStream.
> 1 bitShift: 64 :: negated :: printOn: ws base: 10 nDigits: 20.
> ws contents '-1844674407-3709551616'
> 
> The problem is that printOn:base:nDigits: is not reimplemented in 
> LargeNegativeInteger.  See attached for a suggested fix.
> 
> Andres.
> 


More information about the Cuis-dev mailing list