3 ms·
Wouldn't that violate the as-if rule? If you assign to a u8 in layer 2 then the compiler must truncate regardless of the widening of the value upon return. It c
by fc417fc802 2y ago
Wouldn't that violate the as-if rule? If you assign to a u8 in layer 2 then the compiler must truncate regardless of the widening of the value upon return. It can't just ignore the narrowing assignment.
- dzaima 2y agoAt the very end there's a "movzx eax, dl", i.e. zero-extend the low 8 bits of the accumulated value.