Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

possible fix for asMessageWithEvaluatedArgs applying messages in args…

… multiple times
  • Loading branch information...
commit e0832ab42ccf08dadbcaa7976f5f8bafcec12dc6 1 parent 0988bcb
@edwardgeorge edwardgeorge authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 libs/iovm/source/IoMessage.c
View
9 libs/iovm/source/IoMessage.c
@@ -1313,15 +1313,12 @@ IoMessage *IoMessage_asMessageWithEvaluatedArgs(IoMessage *self, IoObject *local
context = IoMessage_locals_valueArgAt_(m, locals, 0);
}
- if (IoMessage_needsEvaluation(self))
+ if (!IoMessage_needsEvaluation(self))
{
- sendMessage = IoMessage_newWithName_(state, IoMessage_name(self));
- }
- else
- {
- sendMessage = self;
+ return self;
}
+ sendMessage = IoMessage_newWithName_(state, IoMessage_name(self));
for (i = 0; i < max; i ++)
{
IoMessage *arg = IoMessage_rawArgAt_(self, i);
Please sign in to comment.
Something went wrong with that request. Please try again.