Actions
Backport #3964
closedWrong length of sprintf("%020a",1)
Status:
Closed
Assignee:
Description
=begin
The Revision r29531 introduced a new bug.
sprintf("%020a",1)
=> "0x0000000000001p+0"
sprintf("%20a",1)
=> " 0x1p+0"
sprintf("%020a",-1)
=> "-0x00000000000001p+0"
sprintf("%20a",-1)
=> " -0x1p+0"
sprintf("%20a",1).length
=> 18
sprintf("%020a",1).length
=> 18
sprintf("%020a",-1).length
=> 20
sprintf("%20a",-1).length
=> 20
=end
Updated by naruse (Yui NARUSE) over 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r29536.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Updated by yugui (Yuki Sonoda) over 13 years ago
- Status changed from Closed to Assigned
- Assignee set to yugui (Yuki Sonoda)
=begin
=end
Updated by yugui (Yuki Sonoda) almost 13 years ago
- Status changed from Assigned to Closed
Not reproducible at ruby_1_9_2.
Actions
Like0
Like0Like0Like0