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:
a806e90
)
Don't unnecessarily change the length of a string when altering its
author
Chris Hanson
<org/chris-hanson/cph>
Thu, 4 Oct 2001 16:14:19 +0000
(16:14 +0000)
committer
Chris Hanson
<org/chris-hanson/cph>
Thu, 4 Oct 2001 16:14:19 +0000
(16:14 +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 3416ceb159691ad41dddff1c29be152f0f308d98..36dadc5f9bb7bdbbc36b3dbcf03be820a388a395 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
6 2001/10/04 16:13:57
cph Exp $
+$Id: string.c,v 9.4
7 2001/10/04 16:14:19
cph Exp $
Copyright (c) 1987-2001 Massachusetts Institute of Technology
@@
-162,7
+162,7
@@
DEFINE_PRIMITIVE ("SET-STRING-MAXIMUM-LENGTH!", Prim_set_string_maximum_length,
long length
= (arg_index_integer (2, ((MAXIMUM_STRING_LENGTH (string)) + 1)));
if (length < (STRING_LENGTH (string)))
- SET_STRING_LENGTH (string,
max_
length);
+ SET_STRING_LENGTH (string, length);
MEMORY_SET
(string,
STRING_HEADER,