diff options
author | sbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-03-22 19:46:56 +0000 |
---|---|---|
committer | sbrandt <sbrandt@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2013-03-22 19:46:56 +0000 |
commit | f74e867aab6e3a36824f5c33ed1d75bac90ef06f (patch) | |
tree | cecf6e882ad4ef16dce092ac06dff36d16c84489 /src/piraha/Literal.cc | |
parent | 249587f1e95ea75de1e7a04161124751750e42c0 (diff) |
Updates to Piraha:
1) Added some debug code
2) Fix logic bugs that only I noticed
Still passes the ET testsuite.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4988 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/piraha/Literal.cc')
-rw-r--r-- | src/piraha/Literal.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/piraha/Literal.cc b/src/piraha/Literal.cc index f19f7455..62678266 100644 --- a/src/piraha/Literal.cc +++ b/src/piraha/Literal.cc @@ -3,8 +3,9 @@ using namespace piraha; bool Literal::match(Matcher *m) { - if(m->pos - m->input_size >= 0) + if(m->pos - m->input_size >= 0) { return false; + } if(m->input[m->pos] == c) { m->max_pos = std::max(m->pos,m->max_pos); m->pos++; |