From: Chris Hanson Date: Sat, 30 Jun 2007 23:16:12 +0000 (+0000) Subject: Don't depend on -i and +i syntax in number parser. X-Git-Tag: 20090517-FFI~502 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=2ad0c53f075b33cefe67afad8650490646632c1b;p=mit-scheme.git Don't depend on -i and +i syntax in number parser. --- diff --git a/v7/src/runtime/numpar.scm b/v7/src/runtime/numpar.scm index 80665d7ca..56db85468 100644 --- a/v7/src/runtime/numpar.scm +++ b/v7/src/runtime/numpar.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: numpar.scm,v 14.22 2007/01/05 21:19:28 cph Exp $ +$Id: numpar.scm,v 14.23 2007/06/30 23:16:12 cph Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -124,7 +124,7 @@ USA. (or exactness 'IMPLICIT-INEXACT) sign))) ((i? char) (and (fix:= start end) - (if (eq? #\- sign) -i +i))) + (make-rectangular 0 (if (eq? #\- sign) -1 1)))) (else #f))))) (define (parse-integer string start end integer exactness radix sign)