Skip to content

Commit

Permalink
* ext/dl/cptr.c (rb_dlptr_s_to_ptr): fix wrapping condition.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jul 28, 2011
1 parent e2b8001 commit 79d8d74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
Thu Jul 28 12:21:15 2011 Masatoshi SEKI <[email protected]>
Thu Jul 28 12:32:42 2011 Nobuyoshi Nakada <[email protected]>

* 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 <[email protected]>

Expand Down
2 changes: 1 addition & 1 deletion ext/dl/cptr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 79d8d74

Please sign in to comment.