Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Fr0styMatt
on March 5, 2014
|
parent
|
context
|
favorite
| on:
Critical crypto bug leaves Linux, hundreds of app...
THIS^
Incidentally, would this bug have been flagged by a compiler warning?
72deluxe
on March 5, 2014
[–]
I don't think so. The compiler would have no idea that 1 and 0 were not the 1 and 0 that the human was expecting, surely?
_kdhr
on March 5, 2014
|
parent
[–]
In C, no. Even an enum type in C can be compared with integers without any warnings.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Incidentally, would this bug have been flagged by a compiler warning?