Project

General

Profile

Backport #3962

Wrong value of sprintf("%020a",1)

Added by phasis68 (Heesob Park) about 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
[ruby-core:32841]

Description

=begin
The current trunk version works like this:

C:>ruby -e 'p sprintf("%020a",1)'
"000000000000000x1p+0"

C:>ruby -e 'p sprintf("%020a",-1)'
"-00000000000000x1p+0"

As I tested the same C code with gcc 4.3.3, the correct result should be
"0x000000000000001p+0" and
"-0x000000000000x1p+0"
=end


Related issues

Related to Backport192 - Backport #3964: Wrong length of sprintf("%020a",1)Closed10/19/2010Actions

History

#1

Updated by nobu (Nobuyoshi Nakada) about 9 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
This issue was solved with changeset r29531.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

=end

#2

Updated by yugui (Yuki Sonoda) almost 9 years ago

  • Status changed from Closed to Assigned
  • Assignee set to yugui (Yuki Sonoda)

=begin

=end

Updated by yugui (Yuki Sonoda) over 8 years ago

  • Tracker changed from Bug to Backport
  • Status changed from Assigned to Closed

Also available in: Atom PDF