diff options
author | 2011-08-11 01:25:08 -0700 | |
---|---|---|
committer | 2011-08-11 01:25:08 -0700 | |
commit | c122cfc8fd9e14d8b6e193770b33cf669ff6239c (patch) | |
tree | 694ef272a9c23a8910ed478db46c83c445aa4c48 /native/src/correction_state.h | |
parent | 28966734619251f78812f6a53f5efacbf5f77c49 (diff) | |
parent | f3948c1eacee57a9ba4b689ada992cd460596d9f (diff) | |
download | latinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.tar.gz latinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.tar.xz latinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.zip |
Merge "Calculate the skip correction by one loop"
Diffstat (limited to 'native/src/correction_state.h')
-rw-r--r-- | native/src/correction_state.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/native/src/correction_state.h b/native/src/correction_state.h index 731222696..3ff8134e6 100644 --- a/native/src/correction_state.h +++ b/native/src/correction_state.h @@ -31,6 +31,7 @@ struct CorrectionState { uint8_t mDiffs; uint8_t mMatchedCount; uint8_t mSkippedCount; + int8_t mSkipPos; // should be signed bool mMatching; bool mSkipping; bool mNeedsToTraverseAllNodes; @@ -49,6 +50,7 @@ inline static void initCorrectionState(CorrectionState *state, const int rootPos state->mMatching = false; state->mSkipping = false; state->mNeedsToTraverseAllNodes = traverseAll; + state->mSkipPos = -1; } } // namespace latinime |