mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([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:
parent
25d7a05807
commit
d4fa529e5d
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue