You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would also help to augment 7.2.11.5 Type cast expressions to declare that the overflow semantics apply there with a cross-link. There may be other cases where it's not obvious that overflow semantics apply so those sections should cross-link also.
The text was updated successfully, but these errors were encountered:
The widening behaviour should also be documented in the Type Cast section, since it currently isn't. While the widening behaviour for unsigned integral values is fairly obvious, it would be worth noting the behaviour for signed integral values.
// A cast from a signed value widens with signed-extension(-1i8asi16, -1i8asu16)// (-1i16, 65535u16)// A cast from an unsigned value widens with zero-extension(1u8asi16,1u8 s u16)// (1, 1)
Please add a section on integer overflow (and underflow) semantics for signed/unsigned integers.
The only mention of "overflow" I see in the manual is 6.1.3.2.4 Behaviour not considered unsafe which doesn't define overflow semantics.
It would also help to augment 7.2.11.5 Type cast expressions to declare that the overflow semantics apply there with a cross-link. There may be other cases where it's not obvious that overflow semantics apply so those sections should cross-link also.
The text was updated successfully, but these errors were encountered: