Permalink
Browse files

Merge pull request #246 from edwardgeorge/msgevalfix

message evaluation fix
  • Loading branch information...
stevedekorte committed Jun 12, 2013
2 parents 0988bcb + e0832ab commit b967e6756538a9cef11792fc5c29b0b9f42aee0d
Showing with 3 additions and 6 deletions.
  1. +3 −6 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);

0 comments on commit b967e67

Please sign in to comment.