[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 05/30: Fix s64->scm reducer
From: |
Andy Wingo |
Subject: |
[Guile-commits] 05/30: Fix s64->scm reducer |
Date: |
Fri, 24 Nov 2017 09:24:20 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit a48735f56c18e9ac0df2eb49c2f7749fd3f56e2f
Author: Andy Wingo <address@hidden>
Date: Mon Nov 20 18:31:31 2017 +0100
Fix s64->scm reducer
* module/language/cps/type-fold.scm (s64->scm): Fix reducer.
---
module/language/cps/type-fold.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module/language/cps/type-fold.scm
b/module/language/cps/type-fold.scm
index 4e8108f..f546cd3 100644
--- a/module/language/cps/type-fold.scm
+++ b/module/language/cps/type-fold.scm
@@ -381,7 +381,7 @@
(define-unary-primcall-reducer (s64->scm cps k src constant arg type min max)
(cond
- ((<= max (target-most-positive-fixnum))
+ ((<= (target-most-negative-fixnum) min max (target-most-positive-fixnum))
(with-cps cps
(build-term
($continue k src
- [Guile-commits] branch master updated (0951551 -> 7d71d9b), Andy Wingo, 2017/11/24
- [Guile-commits] 01/30: ursh, ursh/immediate, etc only residualized if count < 64, Andy Wingo, 2017/11/24
- [Guile-commits] 05/30: Fix s64->scm reducer,
Andy Wingo <=
- [Guile-commits] 02/30: Revert specialization of fixnum phi variables, Andy Wingo, 2017/11/24
- [Guile-commits] 09/30: Fix logand type inference, Andy Wingo, 2017/11/24
- [Guile-commits] 08/30: Revert "Slot allocation allows s64/u64 representations of same var", Andy Wingo, 2017/11/24
- [Guile-commits] 07/30: Fix u64/s64 typesafety around fixnum (un)tagging, Andy Wingo, 2017/11/24
- [Guile-commits] 14/30: Fix type check elision for branches, Andy Wingo, 2017/11/24
- [Guile-commits] 06/30: Separate u64 and s64 type inferrers now that ops are monomorphic, Andy Wingo, 2017/11/24
- [Guile-commits] 18/30: Remove thunk?, integer? simple predicate inferrers, Andy Wingo, 2017/11/24
- [Guile-commits] 17/30: Add support for bignum? CPS primitive., Andy Wingo, 2017/11/24
- [Guile-commits] 22/30: Fix inference of generic < on NaN values, Andy Wingo, 2017/11/24
- [Guile-commits] 20/30: Add &exact-number helper definition, Andy Wingo, 2017/11/24