Fix warnings

opam-2.0.0
Volodymyr Shymanskyy 2 years ago
parent e7b7f6a500
commit 1a68d516b5

@ -933,7 +933,7 @@ M3Result FindReferencedLocalWithinCurrentBlock (IM3Compilation o, u16 * o_pres
M3Result result = m3Err_none;
IM3CompilationScope scope = & o->block;
i16 startIndex = scope->blockStackIndex;
u16 startIndex = scope->blockStackIndex;
while (scope->opcode == c_waOp_block)
{
@ -1874,7 +1874,7 @@ _ (ReadBlockType (o, & blockType));
if (IsConstantSlot (o, slot))
{
u16 newSlot;
u16 newSlot = c_slotUnused;
_ (AllocateSlots (o, & newSlot, type));
_ (CopyStackIndexToSlot (o, newSlot, i));
o->wasmStack [i] = newSlot;

@ -59,7 +59,7 @@ typedef struct M3CompilationScope
pc_t patches;
i32 depth;
u16 exitStackIndex;
i16 blockStackIndex;
u16 blockStackIndex;
// u16 topSlot;
IM3FuncType type;
m3opcode_t opcode;

@ -356,7 +356,7 @@ void dump_type_stack (IM3Compilation o)
{
d_m3Log(stack, " ");
for (u32 i = 0; i < o->stackIndex; ++i)
for (u16 i = 0; i < o->stackIndex; ++i)
{
if (i > 0 and i == o->stackFirstDynamicIndex)
printf ("#");

Loading…
Cancel
Save