mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- fixed: Direct native functions for the JIT compiler may not return 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.
This commit is contained in:
parent
de5ab0b4b6
commit
e4e86dd4f8
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue