From afd7fe7a8b8f2e60d2c073528436bdc2b0cc4b3a Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Tue, 29 Sep 2015 16:47:25 +0100 Subject: [PATCH] '--skeleton': respect empty string match. --- re2c/src/codegen/skeleton/generate_code.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2c/src/codegen/skeleton/generate_code.cc b/re2c/src/codegen/skeleton/generate_code.cc index 2d0a579b..53c6fae3 100644 --- a/re2c/src/codegen/skeleton/generate_code.cc +++ b/re2c/src/codegen/skeleton/generate_code.cc @@ -205,7 +205,7 @@ void Skeleton::emit_start o << "\n" << ind << "limit = input + input_len + padding;"; o << "\n" << ind << "eof = input + input_len;"; o << "\n"; - o << "\n" << ind << "for (i = 0; status == 0 && cursor < eof && i < keys_count; ++i)"; + o << "\n" << ind << "for (i = 0; status == 0 && i < keys_count; ++i)"; o << "\n" << ind << "{"; if (backup) { -- 2.40.0