there has never been a stupider person then me

we use 64 bit integers, but only reserve 4 bytes for them, well, that is
in fact not enough. They were overwriting each other, which caused some
problems ;-)
This commit is contained in:
Robin Bärtschi 2025-03-13 10:52:34 +01:00
parent 8137b45788
commit fa9777c2a8

View File

@ -313,7 +313,7 @@ func pseudoToStack(op Operand, r *replacePseudoPass) Operand {
if offset, ok := r.identToOffset[string(pseudo)]; ok {
return Stack(offset)
} else {
r.currentOffset -= 4
r.currentOffset -= 8
r.identToOffset[string(pseudo)] = r.currentOffset
return Stack(r.currentOffset)
}