Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
michaelg7x
on Oct 27, 2018
|
parent
|
context
|
favorite
| on:
Systemd is bad parsing
If b is uint8_t you get zero if you <<8, but the expected value if you * by (int)256; or is it late and I should keep quiet?
0xffff2
on Oct 28, 2018
[–]
The shift will automatically promote `b` to int, so the result is identical in both cases.
michaelg7x
on Oct 28, 2018
|
parent
[–]
Thanks. I'm mostly paranoid about whether the ROL instruction has precedence over the OR ... ;)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: