File 0355-make-max_diff_decimals-accurate-with-the-C-spec.patch of Package erlang

From 8faad7c6f6587dd948d209c76f4e0f5947de5d9a Mon Sep 17 00:00:00 2001
From: Thomas Depierre <depierre.thomas@gmail.com>
Date: Tue, 14 Sep 2021 18:52:51 +0200
Subject: [PATCH] make max_diff_decimals accurate with the C spec

---
 erts/emulator/test/num_bif_SUITE.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/emulator/test/num_bif_SUITE.erl b/erts/emulator/test/num_bif_SUITE.erl
index facb2dc7ba..8d06a3d948 100644
--- a/erts/emulator/test/num_bif_SUITE.erl
+++ b/erts/emulator/test/num_bif_SUITE.erl
@@ -305,7 +305,7 @@ fts_rand_float_decimals(N) ->
               end,
          F1 = list_to_float(L1),
          Diff = abs(F0-F1),
-         MaxDiff = max_diff_decimals(F0, D),
+         MaxDiff = max_diff_decimals(F0, D-1),
          ok = case Diff =< MaxDiff of
                   true -> ok;
                   false ->
-- 
2.31.1

openSUSE Build Service is sponsored by