Y
Hacker News
new
|
ask
|
show
|
jobs
by
eridius
3408 days ago
No it won't. It's using pointers, not array indices. The compiler has no possible way of knowing that `pe` is the one-past-the-end address.
1 comments
arestor
3408 days ago
It's still UB. The array could potentially be at the end of the address space...
link
eridius
3408 days ago
Well yes, it could, but that's not really an argument for saying that Ragel using == is just as good as using >=.
link