Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
raphlinus
· 5y ago · 0 comments
Yes, I was assuming it was char *, as in the OP, which can be signed. And any left shift of a negative quantity is UB in C (I'm not sure if this is fixed in recent C++), it doesn't have to be what's commonly thought of as overflow.
Comments
No comments yet.
Better HN