Skip to content
Snippets Groups Projects
Commit bf979c76 authored by toy's avatar toy
Browse files

No hardwired constants for fixnumize.

parent 447bdd8a
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.7 2003/08/03 11:27:49 gerd Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/utils.lisp,v 1.8 2003/10/13 15:56:40 toy Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
(defun fixnumize (num) (defun fixnumize (num)
"Make a fixnum out of NUM. (i.e. shift by two bits if it will fit.)" "Make a fixnum out of NUM. (i.e. shift by two bits if it will fit.)"
(if (<= #x-20000000 num #x1fffffff) (if (<= most-negative-fixnum num most-positive-fixnum)
(ash num 2) (ash num (1- vm:lowtag-bits))
(error "~D is too big for a fixnum." num))) (error "~D is too big for a fixnum." num)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment