Project

General

Profile

This project is closed and read-only.

Actions

Backport #3962

closed

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

Backport #3962: Wrong value of sprintf("%020a",1)

Added by phasis68 (Heesob Park) almost 16 years ago. Updated over 15 years ago.

Status:
Closed
[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 1 (0 open1 closed)

Related to Backport192 - Backport #3964: Wrong length of sprintf("%020a",1)Closedyugui (Yuki Sonoda)Actions
Actions

Also available in: PDF Atom