1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
Description: Use little-endian float32, fixing tests on s390x
Author: Simon Quigley <tsimonq2@debian.org>
Forwarded: no
Last-Update: 2025-11-02
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/bson/binary.rb
+++ b/lib/bson/binary.rb
@@ -170,7 +170,7 @@ module BSON
format = case dtype
when :int8 then 'c*'
- when :float32 then 'f*'
+ when :float32 then 'e*'
when :packed_bit then 'C*'
else
raise ArgumentError, "Unsupported type: #{dtype}"
@@ -415,7 +415,7 @@ module BSON
format = case dtype
when :int8 then 'c*'
- when :float32 then 'f*'
+ when :float32 then 'e*'
when :packed_bit then 'C*'
else raise ArgumentError, "Unsupported type: #{dtype}"
end
|