Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
uecker
6d ago
0 comments
Share
You should know that the type is promoted to int first, which is also what makes your example work. This is what happens when you perform the computation using an non-promoting 8 bit unsigned type:
https://godbolt.org/z/fxxva4nWq
0 comments
default
newest
oldest
3836293648
6d ago
Don't they get promoted to short?
j
/
k
navigate · click thread line to collapse