[racket-dev] bug in ~r
Thanks for fixing it!
On Jan 13, 2013 3:55 PM, "Ryan Culpepper" <ryanc at ccs.neu.edu> wrote:
> 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 <http://lists.racket-lang.org/dev>
>>>
>> _________________________
>> Racket Developers list:
>> http://lists.racket-lang.org/**dev <http://lists.racket-lang.org/dev>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20130113/db5403cb/attachment.html>