Export "guarantee" procedures for string indices.
authorChris Hanson <org/chris-hanson/cph>
Mon, 24 Feb 2003 21:55:32 +0000 (21:55 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 24 Feb 2003 21:55:32 +0000 (21:55 +0000)
v7/src/runtime/runtime.pkg
v7/src/runtime/string.scm

index 1a1ce374dc9bf92a19d8b46ccbaa496cc1bb7667..d8ac52b7645583cdd3f9587070635ce4fa4b67a0 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: runtime.pkg,v 14.428 2003/02/24 20:48:38 cph Exp $
+$Id: runtime.pkg,v 14.429 2003/02/24 21:53:39 cph Exp $
 
 Copyright (c) 1988,1989,1990,1991,1992 Massachusetts Institute of Technology
 Copyright (c) 1993,1994,1995,1996,1997 Massachusetts Institute of Technology
@@ -697,7 +697,6 @@ USA.
          decorated-string-append
          external-string-length
          external-string?
-         guarantee-char-set
          guarantee-string
          guarantee-string-index
          guarantee-substring
index da8856005f8604e3abcc33797f197571781ce24c..0c51f6f9e572464a074508e3af0030a134fb45f9 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: string.scm,v 14.50 2003/02/24 20:47:14 cph Exp $
+$Id: string.scm,v 14.51 2003/02/24 21:55:32 cph Exp $
 
 Copyright 1986,1987,1988,1992,1993,1994 Massachusetts Institute of Technology
 Copyright 1995,1997,1999,2000,2001,2002 Massachusetts Institute of Technology
@@ -1423,7 +1423,7 @@ USA.
   (guarantee-string-index end caller)
   (if (not (fix:<= end (string-length string)))
       (error:bad-range-argument end caller))
-  start)
+  end)
 
 (define-integrable (guarantee-substring-start-index string start end caller)
   (guarantee-string-index start caller)