Skip to content

Commit

Permalink
- fixed: Direct native functions for the JIT compiler may not return …
Browse files Browse the repository at this point in the history
…bool.

A bool will only set the al register on x64, but the entire eax needs to be set for the JIT code to deal with it.
  • Loading branch information
coelckers committed Dec 5, 2018
1 parent de5ab0b commit e4e86dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripting/vmiterators.cpp
Expand Up @@ -149,7 +149,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DBlockLinesIterator, CreateFromPos, CreateBLIFromP
ACTION_RETURN_OBJECT(Create<DBlockLinesIterator>(x, y, z, h, radius, sec));
}

static bool BLINext(DBlockLinesIterator *self)
static int BLINext(DBlockLinesIterator *self)
{
return self->Next(&self->cres);
}
Expand Down Expand Up @@ -226,7 +226,7 @@ DEFINE_ACTION_FUNCTION_NATIVE(DBlockThingsIterator, CreateFromPos, CreateBTIFrom
ACTION_RETURN_OBJECT(Create<DBlockThingsIterator>(x, y, z, h, radius, ignore, nullptr));
}

static bool NextBTI(DBlockThingsIterator *bti)
static int NextBTI(DBlockThingsIterator *bti)
{
return bti->iterator.Next(&bti->cres);
}
Expand Down

0 comments on commit e4e86dd

Please sign in to comment.