Skip to content
Snippets Groups Projects
Commit 3dc3f1c5 authored by ram's avatar ram
Browse files

Added RETURN-FROM around the calls to ERROR in the NUMBER-DISPATCH expansion so

that the compiler will know that the tagbody never drops through.
parent 3bee9b2f
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.17 1991/02/08 13:34:19 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.18 1991/02/25 18:54:17 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.17 1991/02/08 13:34:19 ram Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.18 1991/02/25 18:54:17 ram Exp $
;;; ;;;
;;; This file contains the definitions of most number functions. ;;; This file contains the definitions of most number functions.
;;; ;;;
...@@ -148,12 +148,14 @@ ...@@ -148,12 +148,14 @@
(tag (gensym))) (tag (gensym)))
(error-tags tag) (error-tags tag)
(errors tag) (errors tag)
(errors `(error 'simple-type-error :datum ,var (errors `(return-from
:expected-type ',type ,block
:format-string (error 'simple-type-error :datum ,var
"Argument ~A is not a ~S: ~S." :expected-type ',type
:format-arguments :format-string
(list ',var ',type ,var))))) "Argument ~A is not a ~S: ~S."
:format-arguments
(list ',var ',type ,var))))))
`(block ,block `(block ,block
(tagbody (tagbody
......
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