Mercurial > hg > Members > masakoha > testcode
changeset 103:4ad2a75dec4a impl-bitvector
fix if statement in descendTreeNode.cc
author | Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 17 Nov 2015 19:37:29 +0900 |
parents | 07f4761c6c58 |
children | 3eb3cb5d581f 8e47f1618608 |
files | c/regexParser/createBitVectorList.cc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/c/regexParser/createBitVectorList.cc Tue Nov 17 16:35:54 2015 +0900 +++ b/c/regexParser/createBitVectorList.cc Tue Nov 17 19:37:29 2015 +0900 @@ -66,9 +66,9 @@ BitVectorListPtr descendTreeNode(NodePtr n,BitVectorListPtr bvl) { - if (n->tokenType == '*') { + if (n->Value.character == '*') { bvl = descendTreeNode(n->left,bvl); - } else if (n->tokenType == '|') { + } else if (n->Value.character == '|') { bvl = descendTreeNode(n->left,bvl); bvl = descendTreeNode(n->parent->right,bvl); } else if (n->Value.character == '+') {