4 ms·
Why is shifting by a negative amount undefined?
by asimpletune 7y ago
Why is shifting by a negative amount undefined?
- kps 7y agoBecause people want `c = a << b` to compile into `shl c, a, b` and C89 made the giant mistake of calling it ‘undefined’ instead of ‘implementation-defined, possibly fatal’.