Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
JoeAltmaier
on Nov 5, 2014
|
parent
|
context
|
favorite
| on:
Neovim: input encoding and you
Casting smaller doesn't hurt if the numbers are small and you're little endian - because the ptr will still point at the meat of the scalar (instead of the high bytes with zeros in them as it would if big-endian)
duaneb
on Nov 6, 2014
[–]
I'm not sure you understand big-endian casting—it's still value based, so you'll still get the least significant bits in the casted value.
JoeAltmaier
on Nov 7, 2014
|
parent
[–]
The issue was, casting an untyped pointer which does NOT get the conversion you mention.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: