use num_squeeze directly for bytecode LSTO

This commit is contained in:
dzaima 2023-01-24 22:00:09 +02:00
parent 7768d6475f
commit f91d3dfaf5

View File

@ -775,7 +775,7 @@ B evalBC(Body* b, Scope* sc, Block* bl) { // doesn't consume
for (i64 i = 0; i < sz; i++) if (!isNum(r.a[sz-i-1] = POP)) allNum = false; for (i64 i = 0; i < sz; i++) if (!isNum(r.a[sz-i-1] = POP)) allNum = false;
if (allNum) { if (allNum) {
GS_UPD; GS_UPD;
ADD(withFill(r.b, m_f64(0))); ADD(num_squeeze(r.b));
} else ADD(r.b); } else ADD(r.b);
} }
break; break;