summaryrefslogtreecommitdiff
path: root/colm/compiler.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2013-02-18 14:29:37 -0500
committerAdrian Thurston <thurston@complang.org>2013-02-18 14:29:37 -0500
commit68e06a1a633b0c110f5b6ced14634ea29d1fde2a (patch)
tree3374b7230e4d42d82a46f78100f26eb8fcaa8a87 /colm/compiler.cc
parent272309c2e5d69e07bbd2481c035ce2135473a4ed (diff)
downloadcolm-68e06a1a633b0c110f5b6ced14634ea29d1fde2a.tar.gz
don't need to maintain the tree of region
Diffstat (limited to 'colm/compiler.cc')
-rw-r--r--colm/compiler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/colm/compiler.cc b/colm/compiler.cc
index 2d44bfed..d6386a64 100644
--- a/colm/compiler.cc
+++ b/colm/compiler.cc
@@ -762,7 +762,7 @@ void Compiler::createDefaultScanner()
/* Create a scanner which will be used when no other scanner can be
* figured out. It returns single characters. */
defaultRegion = new TokenRegion( InputLoc(),
- regionList.length(), 0 );
+ regionList.length() );
regionList.append( defaultRegion );
/* Insert the machine definition into the graph dictionary. */