Project

General

Profile

Actions

Bug #5991

closed

fiddle/conversion.c ignores unsigned qualifier

Added by nobu (Nobuyoshi Nakada) about 12 years ago. Updated about 12 years ago.

Status:
Closed
Target version:
ruby -v:
r34519
Backport:
[ruby-core:42458]

Description

=begin
In (({value_to_generic()})), ((|signed_p|)) seems to be ignored except for
(({TYPE_LONG})), and (({NUM2LONG()})) is used even if ((|signed_p|)) is not set.
(({NUM2INT()})) and (({NUM2UINT()})) have different value ranges, so I
think they should be separated.

And in (({generic_to_value()})), ((|signed_p|)) is ignored only for
(({TYPE_LONG_LONG})), and I can't see any reason to make the
difference.

Patch is attached.


Files

fiddle.diff (2.68 KB) fiddle.diff nobu (Nobuyoshi Nakada), 02/10/2012 12:38 AM

Related issues 1 (0 open1 closed)

Has duplicate Backport193 - Backport #6022: DL on MinGW: bignum too big to convert into `long' (memory_status test)Closed02/15/2012Actions
Actions

Also available in: Atom PDF

Like0
Like0