Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dextorious
on Dec 31, 2011
|
parent
|
context
|
favorite
| on:
Xcode 4 ships a buggy compiler
so alloca(-1) would succeed too, right?
FooBarWidget
on Dec 31, 2011
|
next
[–]
No. According to the OS X and Linux man pages 'size' has type 'size_t'. It is undefined whether size_t is signed.
Someone
on Dec 31, 2011
|
prev
[–]
alloca takes a sixe_t. I think size_t is unsigned.
http://stackoverflow.com/questions/1089176/is-size-t-always-...
seems to agree with that (correction welcome)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: