Fix another mutable vs. non-mutable array mismatch detected by clang.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/steptalk/trunk@38065 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2014-09-09 15:11:46 +00:00
parent 27f1ac7524
commit a58da09aa0
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-09-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* STCompiler.m (setReceiverVariables:):
Do not assign a non-mutable array to a mutable array attribute.
2014-09-09 Wolfgang Lux <wolfgang.lux@gmail.com>
* STCompiledCode.h (STCompiledCode, -namedReferences,

View file

@ -460,7 +460,7 @@ extern int STCparse(void *context);
- (void)setReceiverVariables:(NSArray *)array
{
ASSIGN(receiverVars,array);
[receiverVars setArray:array];
[namedReferences addObjectsFromArray:array];
}