Skip to content
Browse files

Use Fixnum#size to check for 32bit-ness

  • Loading branch information...
1 parent 572e823 commit 23a044a7b29760c01d0c0100a7617832b1112a5b @evanphx evanphx committed May 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 ruby-oci8/ext/oci8/oraconf.rb
View
2 ruby-oci8/ext/oci8/oraconf.rb
@@ -402,7 +402,7 @@ def self.check_ic_dir
so_ext = 'so'
nls_data_ext = nil
check_proc = nil
- is_32bit = [nil].pack('p').size == 4
+ is_32bit = (1.size == 4)
is_big_endian = "\x01\x02".unpack('s')[0] == 0x0102
case RUBY_PLATFORM
when /mswin32|cygwin|mingw32|bccwin32/

0 comments on commit 23a044a

Please sign in to comment.
Something went wrong with that request. Please try again.