Project

General

Profile

Actions

Bug #1505

closed

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

Added by sheepman (Takashi Tamura) over 15 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions #1

Updated by nobu (Nobuyoshi Nakada) over 15 years ago

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

=begin
Applied in changeset r23549.
=end

Actions

Also available in: Atom PDF

Like0
Like0