Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
darnaut
on June 11, 2012
|
parent
|
context
|
favorite
| on:
Security vulnerability in MySQL ubuntu
> This is why real C programmers use int as their bool type. :)
It has the same problem if a wider type (e.g. long) is assigned to it. Use _Bool instead.
tedunangst
on June 11, 2012
[–]
I was at first tempted to complain about useless pedantry, but you're right. Even if some of us still like to party like it's 1989. I should have said the real lesson is don't reimplement standard C types, poorly.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It has the same problem if a wider type (e.g. long) is assigned to it. Use _Bool instead.