]> granicus.if.org Git - re2c/commit
Fixed an old bug in function calculating regexp length.
authorUlya Trofimovich <skvadrik@gmail.com>
Wed, 17 Feb 2016 15:01:28 +0000 (15:01 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Wed, 17 Feb 2016 15:01:28 +0000 (15:01 +0000)
commit551154584ab3322b4f15f6da4ea70ebc041d8f6e
tree91810c6af9a7cc339a2483f9e1443849e3d61d12
parent7e5550bc2eb5e789432c00fc0b898b020ae14cd6
Fixed an old bug in function calculating regexp length.

The bug: the function treated 'r1 | r2' as 'r1 | r2'
(used 'r1' twice instead of 'r1' and 'r2').

As the function was rarely used the bug went unnoticed for about
two decades.
re2c/src/ir/regexp/fixed_length.cc