From: Taylor R. Campbell Date: Wed, 15 Apr 2009 19:19:40 +0000 (+0000) Subject: Use the argument count, not the operand count (which includes the X-Git-Tag: 20090517-FFI~36 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=b3ce3a2c08542371663f0c59e3b2f3cfcb5774af;p=mit-scheme.git Use the argument count, not the operand count (which includes the continuation), when reporting arity mismatch warnings. --- diff --git a/v7/src/compiler/fgopt/simapp.scm b/v7/src/compiler/fgopt/simapp.scm index 4f5ed8fa9..4da2f76c9 100644 --- a/v7/src/compiler/fgopt/simapp.scm +++ b/v7/src/compiler/fgopt/simapp.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: simapp.scm,v 4.16 2008/01/30 20:01:45 cph Exp $ +$Id: simapp.scm,v 4.17 2009/04/15 19:19:40 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -117,7 +117,7 @@ USA. true))) (warn "Procedure called with wrong number of arguments" value - number-supplied)))) + argument-count)))) #| (else (warn "Possible inapplicable operator" operator))