commit
e3d627956c
|
@ -1123,7 +1123,7 @@ CompiledAddr fstGetRootAddr(Fst *fst) {
|
|||
|
||||
Output fstEmptyFinalOutput(Fst *fst, bool *null) {
|
||||
Output res = 0;
|
||||
FstNode *node = fst->root;
|
||||
FstNode *node = fstGetRoot(fst);
|
||||
if (FST_NODE_IS_FINAL(node)) {
|
||||
*null = false;
|
||||
res = FST_NODE_FINAL_OUTPUT(node);
|
||||
|
|
|
@ -68,7 +68,7 @@ StartWithStateValue *startWithStateValueDump(StartWithStateValue *sv) {
|
|||
// prefix query, impl later
|
||||
|
||||
static void* prefixStart(AutomationCtx *ctx) {
|
||||
StartWithStateValue *data = (StartWithStateValue *)(ctx->data);
|
||||
StartWithStateValue *data = (StartWithStateValue *)(ctx->stdata);
|
||||
return startWithStateValueDump(data);
|
||||
};
|
||||
static bool prefixIsMatch(AutomationCtx *ctx, void *sv) {
|
||||
|
|
Loading…
Reference in New Issue