~ chicken-core (master) 1e982b93eebfa34ee2b3e603d6ee9708f403f387


commit 1e982b93eebfa34ee2b3e603d6ee9708f403f387
Author:     felix <felix@call-with-current-continuation.org>
AuthorDate: Sat Oct 17 19:03:44 2026 +0200
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Sat Oct 17 19:03:44 2026 +0200

    disable fix/flo addition rewrite, as we must preserve negative float zero

diff --git a/tests/scrutiny-2.expected b/tests/scrutiny-2.expected
index dc369518..b8da3dec 100644
--- a/tests/scrutiny-2.expected
+++ b/tests/scrutiny-2.expected
@@ -494,35 +494,6 @@ Note: Test is always true
 
     true
 
-Note: Predicate is always false
-  In file `scrutiny-tests-2.scm:XXX',
-  At the toplevel,
-  In procedure call:
-
-    (chicken.base#fixnum? u)
-
-  The predicate will always return false.
-
-  Procedure `fixnum?' from module `chicken.base' is a predicate for:
-
-    fixnum
-
-  The given argument has this type:
-
-    float
-
-Note: Test is always true
-  At the toplevel,
-  In conditional expression:
-
-    (if tmp
-      tmp
-      (##sys#error "(scrutiny-tests-2.scm:XXX) assertion failed" '(not ...)))
-
-  Test condition has always true value of type:
-
-    true
-
 Note: Predicate is always true
   In file `scrutiny-tests-2.scm:XXX',
   At the toplevel,
@@ -552,35 +523,6 @@ Note: Test is always true
 
     true
 
-Note: Predicate is always true
-  In file `scrutiny-tests-2.scm:XXX',
-  At the toplevel,
-  In procedure call:
-
-    (chicken.base#flonum? u)
-
-  The predicate will always return true.
-
-  Procedure `flonum?' from module `chicken.base' is a predicate for:
-
-    float
-
-  The given argument has this type:
-
-    float
-
-Note: Test is always true
-  At the toplevel,
-  In conditional expression:
-
-    (if tmp
-      tmp
-      (##sys#error "(scrutiny-tests-2.scm:XXX) assertion failed" '(flonum? u)))
-
-  Test condition has always true value of type:
-
-    true
-
 Note: Predicate is always false
   In file `scrutiny-tests-2.scm:XXX',
   At the toplevel,
@@ -683,7 +625,7 @@ Note: Predicate is always true
 
   The given argument has this type:
 
-    float
+    number
 
 Note: Test is always true
   At the toplevel,
diff --git a/types.db b/types.db
index d6a4b097..7ec67778 100644
--- a/types.db
+++ b/types.db
@@ -304,17 +304,6 @@
 	  ((ratnum) (ratnum) #(1))
 	  ((cplxnum) (cplxnum) #(1))
 	  ((number) (number) #(1))
-	  ((float fixnum) (float)
-	   (##core#inline_allocate
-	    ("C_a_i_flonum_plus" 4)
-	    #(1)
-	    (##core#inline_allocate ("C_a_i_fix_to_flo" 4) #(2))))
-	  ((fixnum float)
-	   (float)
-	   (##core#inline_allocate
-	    ("C_a_i_flonum_plus" 4)
-	    (##core#inline_allocate ("C_a_i_fix_to_flo" 4) #(1))
-	    #(2)))
 	  ((float float) (float)
 	   (##core#inline_allocate ("C_a_i_flonum_plus" 4) #(1) #(2)))
 	  ((fixnum fixnum) (integer)
Trap