[racket-dev] bug in ~r
I just pushed a fix. Thanks for reporting this!
Ryan
On 01/13/2013 10:48 AM, Matthew Flatt wrote:
> It's still broken. Although I don't get an error with the latest
> sources (v5.3.2.1), the output is not right:
>
> > (~r (/ 15625 16384) #:min-width 4 #:precision 1)
> " 0.1"
> > (~r (/ 15625 16384))
> "0.953674"
>
> At Sun, 13 Jan 2013 10:40:04 -0500, Curtis Dutton wrote:
>> I think this is a bug...
>>
>> (~r (/ 15625 16384)
>> #:min-width 4
>> #:precision 1)
>>
>> gives me
>>
>> make-string: contract violation
>> expected: exact-nonnegative-integer?
>> given: -1
>> argument position: 1st
>> other arguments...:
>> #\0
>>
>> Can anyone else reproduce this? If so I'll file it as a bug...
>>
>> Thanks,
>> Curt
>> _________________________
>> Racket Developers list:
>> http://lists.racket-lang.org/dev
> _________________________
> Racket Developers list:
> http://lists.racket-lang.org/dev
>