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
