From: Guillermo J. Rozas Date: Wed, 16 Dec 1992 12:12:18 +0000 (+0000) Subject: Fix bug in last edit. X-Git-Tag: 20090517-FFI~8649 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=1597bca002ee6ac0331a4c1c109fb781a78b4df2;p=mit-scheme.git Fix bug in last edit. --- diff --git a/v7/src/compiler/rtlgen/opncod.scm b/v7/src/compiler/rtlgen/opncod.scm index b6ad72b41..0ea7c1327 100644 --- a/v7/src/compiler/rtlgen/opncod.scm +++ b/v7/src/compiler/rtlgen/opncod.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: opncod.scm,v 4.52 1992/12/16 09:20:06 gjr Exp $ +$Id: opncod.scm,v 4.53 1992/12/16 12:12:18 gjr Exp $ Copyright (c) 1988-1992 Massachusetts Institute of Technology @@ -585,14 +585,12 @@ MIT in each case. |# (lambda (combination expressions finish) (let ((type (car expressions)) (object (cadr expressions))) - (let* ((operand (rvalue-known-value type)) - (ok? (and operand - (rvalue/constant? operand))) + (let* ((ok? (rtl:constant? type)) (tag (and ok? - (constant-value operand)))) + (rtl:constant-value type)))) (if (and ok? - (exact-nonnegative-integer? tag) - (< tag (expt 2 scheme-type-width))) + (exact-nonnegative-integer? tag) + (< tag (expt 2 scheme-type-width))) (finish (rtl:make-type-test (rtl:make-object->type object) tag))