local int8_t i; // same for int16_t int32_t but NOT int64_t
for (i = 2; i >= 0; i--) {
Printf("inner(%d)\n", i);
if (i > 100) break;
}
without that break, it would never terminate since it emits
inner(2)
inner(1)
inner(0)
inner(255)
Thankfully(?), local char i behaves the same, so it seems to be mostly systemic to the non unsigned types (except int64_t does actually behave correctly, emitting inner(-1))
Given:
without that
break
, it would never terminate since it emitsThankfully(?),
local char i
behaves the same, so it seems to be mostly systemic to the nonunsigned
types (exceptint64_t
does actually behave correctly, emittinginner(-1)
)