([Storage -insertElement:at:]): Increment numElements. (Reported by

Revuz Dominique <dr@univ-mlv.fr>).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@701 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1996-01-09 20:24:52 +00:00
parent 25d7a05807
commit d4fa529e5d

View file

@ -1,5 +1,5 @@
/* Implementation of Objective C NeXT-compatible Storage object
Copyright (C) 1993,1994 Free Software Foundation, Inc.
Copyright (C) 1993,1994, 1996 Free Software Foundation, Inc.
Written by: Kresten Krab Thorup <krab@iesd.auc.dk>
Dept. of Mathematics and Computer Science, Aalborg U., Denmark
@ -209,6 +209,7 @@ static inline void _shrinkIfDesired(Storage *self)
elementSize*(numElements-index));
#endif
memcpy(STORAGE_NTH(i), anElement, elementSize);
numElements++;
return self;
}