File: little-endian-float.patch

package info (click to toggle)
ruby-bson 5.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,828 kB
  • sloc: ruby: 11,712; ansic: 1,427; java: 514; makefile: 8
file content (26 lines) | stat: -rw-r--r-- 886 bytes parent folder | download
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