DescriptionBug fix:
When a function's 'return' statement is not the last statement in the function body, we use a trick where we wrap the function in a 'do { ... } while (0)' and the return is like a 'break'. (This is because we don't have a true jump instruction, which is a pain for SIMD.) We say 'while 0' because we don't want to LOOP, we just want a loop to jump out of, if you catch my drift.
The bug is that I made the "0" a true constant, but forgot to mark that the while condition was not written by the while statement itself, and therefore got a "can't write to a constant" error later on.
Patch Set 1 #
MessagesTotal messages: 3
|