Updated SqRat to Squirrel 3.2 version #2

This commit is contained in:
Patrix
2023-04-16 22:25:40 +02:00
parent a76283053f
commit c227e6c964

View File

@@ -1369,8 +1369,8 @@ public:
sq_pushobject(vm, env); sq_pushobject(vm, env);
#if !defined (SCRAT_NO_ERROR_CHECKING) #if !defined (SCRAT_NO_ERROR_CHECKING)
SQUnsignedInteger nparams; SQInteger nparams;
SQUnsignedInteger nfreevars; SQInteger nfreevars;
if (obj._type != OT_NATIVECLOSURE && if (obj._type != OT_NATIVECLOSURE &&
SQ_SUCCEEDED(sq_getclosureinfo(vm, -2, &nparams, &nfreevars)) && (nparams != 3)) { SQ_SUCCEEDED(sq_getclosureinfo(vm, -2, &nparams, &nfreevars)) && (nparams != 3)) {
sq_pop(vm, 2); sq_pop(vm, 2);