projects
/
external
/
ragel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjust maxIndexOffset to include eofTrans. Use maxIndexOffset when picking the
[external/ragel.git]
/
rlgen-csharp
/
flatcodegen.cpp
diff --git
a/rlgen-csharp/flatcodegen.cpp
b/rlgen-csharp/flatcodegen.cpp
index
bf3ba24
..
ca3ce89
100644
(file)
--- a/
rlgen-csharp/flatcodegen.cpp
+++ b/
rlgen-csharp/flatcodegen.cpp
@@
-625,7
+625,7
@@
void CSharpFlatCodeGen::writeData()
}
if ( redFsm->anyEofTrans() ) {
- OPEN_ARRAY( ARRAY_TYPE(redFsm->maxIndex+1), ET() );
+ OPEN_ARRAY( ARRAY_TYPE(redFsm->maxIndex
Offset
+1), ET() );
EOF_TRANS();
CLOSE_ARRAY() <<
"\n";