From 012a71c33d3d2021e5bf9af60548b76d8b12cfe4 Mon Sep 17 00:00:00 2001 From: Stephen Adams Date: Wed, 25 Oct 1995 18:35:15 +0000 Subject: [PATCH] Fixed signature of ERROR:WRONG-TYPE-ARGUMENT --- v8/src/compiler/midend/typedb.scm | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/v8/src/compiler/midend/typedb.scm b/v8/src/compiler/midend/typedb.scm index 589780df3..9580b5fb7 100644 --- a/v8/src/compiler/midend/typedb.scm +++ b/v8/src/compiler/midend/typedb.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: typedb.scm,v 1.2 1995/09/05 19:04:43 adams Exp $ +$Id: typedb.scm,v 1.3 1995/10/25 18:35:15 adams Exp $ Copyright (c) 1995 Massachusetts Institute of Technology @@ -56,7 +56,7 @@ MIT in each case. |# (define-operator-type 'ERROR:WRONG-TYPE-ARGUMENT ;; return type empty => Never returns - (procedure-type (list type:any type:any) type:empty + (procedure-type (list type:any type:any type:any) type:empty 'function)) (define-operator-type 'EXACT->INEXACT @@ -64,6 +64,18 @@ MIT in each case. |# (define-operator-type 'INEXACT->EXACT (procedure-type (list type:number) type:exact-number 'function)) + +(define-operator-type 'CEILING->EXACT + (procedure-type (list type:number) type:exact-integer 'function)) + +(define-operator-type 'FLOOR->EXACT + (procedure-type (list type:number) type:exact-integer 'function)) + +(define-operator-type 'ROUND->EXACT + (procedure-type (list type:number) type:exact-integer 'function)) + +(define-operator-type 'TRUNCATE->EXACT + (procedure-type (list type:number) type:exact-integer 'function)) (define-operator-type (make-primitive-procedure 'CAR) (primitive-procedure-type (list type:pair) type:any -- 2.25.1