Project

General

Profile

Bug #1505

DL::CPtr#<=> doesn't return -1

Added by sheepman (Takashi Tamura) over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
ruby -v:
ruby 1.9.2dev (2009-05-16 trunk 23440) [i686-linux]
Backport:
[ruby-dev:38533]

Description

=begin
DL::CPtr#<=> が -1 ではなくて 4294967295 を返します。

$ cat d15.rb
require 'dl'

s = 'abc'
cptr = DL::CPtr[s]
cptr1 = cptr + 1
p cptr <=> cptr1
p cptr1 <=> cptr

$ ruby-1.9 d15.rb
4294967295
1
=end

History

#1

Updated by nobu (Nobuyoshi Nakada) over 10 years ago

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

=begin
Applied in changeset r23549.
=end

Also available in: Atom PDF