Update Compiler.cpp

Fix cid cast
This commit is contained in:
Arseny Kapoulkine 2022-01-12 09:57:45 -08:00 committed by GitHub
parent 46578ca23e
commit c9afa0a2b8
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -471,7 +471,7 @@ struct Compiler
if (cid >= 0 && cid < 32768)
{
bytecode.emitAD(LOP_DUPCLOSURE, target, uint16_t(cid));
bytecode.emitAD(LOP_DUPCLOSURE, target, int16_t(cid));
shared = true;
}
}