summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsc2000-12-22 10:17:16 +0000
committersc2000-12-22 10:17:16 +0000
commit8a7f8f8f99d5573945b0f58770d77019a1008782 (patch)
tree63b83e0a475ec3c823f754e083b0428941d38ea9
parentf30642739c0016e435eb65d9b595f507010008b9 (diff)
downloadivy-league-8a7f8f8f99d5573945b0f58770d77019a1008782.zip
ivy-league-8a7f8f8f99d5573945b0f58770d77019a1008782.tar.gz
ivy-league-8a7f8f8f99d5573945b0f58770d77019a1008782.tar.bz2
ivy-league-8a7f8f8f99d5573945b0f58770d77019a1008782.tar.xz
Fixed old bug in initialisation of MaxSize
-rw-r--r--comm/MsgBuffer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/comm/MsgBuffer.cc b/comm/MsgBuffer.cc
index 07ca341..f1dbeda 100644
--- a/comm/MsgBuffer.cc
+++ b/comm/MsgBuffer.cc
@@ -139,7 +139,7 @@ IvlMsgBuffer :: Clear ()
}
/*?
-Insure that a IvlMsgBuffer.has at least \var{sz} free bytes.
+Insure that an IvlMsgBuffer has at least \var{sz} free bytes.
The buffer may be reallocated with a new size to provide the necessary space.
?*/
void
@@ -231,7 +231,7 @@ IvlMsgBuffer :: SetSizes (int min, int grow, int max)
if (grow >= 0)
GrowSize = pad (grow);
if (max >= 0)
- MaxSize = pad (grow);
+ MaxSize = pad (max);
if (min == 0)
MinSize = 128;
if (grow == 0)