]> granicus.if.org Git - re2c/commit
Simplified array bounds check.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 28 Aug 2015 22:00:56 +0000 (23:00 +0100)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 28 Aug 2015 22:00:56 +0000 (23:00 +0100)
commitfa76747da9251cf3090b272c458802dd29c91672
treecf720ada7865d3c58e872415c4e14f9974bc2f2e
parentc57c6f34abb0abacb59ec11c8df4b3e5765de280
Simplified array bounds check.

Comparing against pointer to the end of array is easier than calculating
array length, then setting next-to-last element to NULL and iterating
while not NULL.
re2c/src/ir/dfa/dfa.cc
re2c/src/ir/dfa/dfa.h