mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e2b800113c
commit
79d8d7439a
2 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,8 @@
|
|||
Thu Jul 28 12:21:15 2011 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
|
||||
Thu Jul 28 12:32:42 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* test/rinda/test_rinda.rb: decrease the code that depends on timing.
|
||||
[Bug #372] [Bug #4160]
|
||||
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition.
|
||||
|
||||
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition.
|
||||
|
||||
Thu Jul 28 04:53:31 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
|
|
|
@ -622,7 +622,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
|
|||
}
|
||||
else{
|
||||
VALUE num = rb_Integer(val);
|
||||
if (num != val) wrap = 0;
|
||||
if (num == val) wrap = 0;
|
||||
ptr = rb_dlptr_new(NUM2PTR(num), 0, NULL);
|
||||
}
|
||||
OBJ_INFECT(ptr, val);
|
||||
|
|
Loading…
Reference in a new issue