Update check for little endian to work with ruby 1.8.6

This commit is contained in:
thickpaddy 2010-12-28 10:40:55 +00:00
parent 505f149291
commit 30cce6322e
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ else
raise LoadError if ENV['TEST_MODE'] && !ENV['C_EXT']
# Raise LoadError unless little endian
raise LoadError unless [1,0,0,0].pack("i").bytes.first == 1
raise LoadError unless "\x01\x00\x00\x00".unpack("i").first == 1
require 'bson_ext/cbson'
raise LoadError unless defined?(CBson::VERSION)