Fixed string size undo

This commit is contained in:
Gašper Dobrovoljc 2025-05-11 21:28:31 +02:00
parent 5188e80ee3
commit b50325d3a5
No known key found for this signature in database
GPG Key ID: 0E7E037018CFA5A5

View File

@ -278,7 +278,7 @@ public class Memory {
Vector<Integer> str = decodeStrConst(init.value, valLoc);
inits.add(str.size());
inits.addAll(str);
size += 4 * num;
size += 4 * str.size() * num;
break;
}
}