From 7e2fa5adf46a3cfa9d6c8363e63ce1fc4d12031c Mon Sep 17 00:00:00 2001 From: wanabe Date: Fri, 19 Mar 2010 16:20:56 +0000 Subject: [PATCH] * ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/dl/lib/dl/pack.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ae6949f394..d448940704 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Mar 20 00:59:50 2010 wanabe + + * ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64. + Fri Mar 19 05:26:31 2010 Tanaka Akira * string.c (rb_str_sum): don't call method for each byte. diff --git a/ext/dl/lib/dl/pack.rb b/ext/dl/lib/dl/pack.rb index d760edaab5..7fbc802b0f 100644 --- a/ext/dl/lib/dl/pack.rb +++ b/ext/dl/lib/dl/pack.rb @@ -79,7 +79,7 @@ module DL case SIZEOF_VOIDP when SIZEOF_LONG ary.pack(@template) - when SIZEOF_LONG + when SIZEOF_LONG_LONG ary.pack(@template) else raise(RuntimeError, "sizeof(void*)?")