aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/correction_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/correction_state.h')
-rw-r--r--native/src/correction_state.h2
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