On Thursday, 20 September 2018 at 11:08:32 UTC, ketmar wrote: > Guillaume Lathoud wrote: > > this is UB. by the specs, values are promoted to int, and > shifting int by 50 is UB. so both results are nonsense. Thanks!