projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00a3a4d
)
Don't unnecessarily change the length of a string when altering its
author
Chris Hanson
<org/chris-hanson/cph>
Thu, 4 Oct 2001 16:13:57 +0000
(16:13 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Thu, 4 Oct 2001 16:13:57 +0000
(16:13 +0000)
maximum length.
v7/src/microcode/string.c
patch
|
blob
|
history
diff --git
a/v7/src/microcode/string.c
b/v7/src/microcode/string.c
index b7400d7b0285999c804169248a8f14fa3f72a25e..3416ceb159691ad41dddff1c29be152f0f308d98 100644
(file)
--- a/
v7/src/microcode/string.c
+++ b/
v7/src/microcode/string.c
@@
-1,6
+1,6
@@
/* -*-C-*-
-$Id: string.c,v 9.4
5 2001/10/04 16:13:24
cph Exp $
+$Id: string.c,v 9.4
6 2001/10/04 16:13:57
cph Exp $
Copyright (c) 1987-2001 Massachusetts Institute of Technology
@@
-161,7
+161,7
@@
DEFINE_PRIMITIVE ("SET-STRING-MAXIMUM-LENGTH!", Prim_set_string_maximum_length,
SCHEME_OBJECT string = (ARG_REF (1));
long length
= (arg_index_integer (2, ((MAXIMUM_STRING_LENGTH (string)) + 1)));
- if (
max_
length < (STRING_LENGTH (string)))
+ if (length < (STRING_LENGTH (string)))
SET_STRING_LENGTH (string, max_length);
MEMORY_SET
(string,