aboutsummaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 50b136a..565f94d 100644
--- a/vm.c
+++ b/vm.c
@@ -41,7 +41,7 @@ match_t *match(grammar_t *g, const char *str, vm_op_t *op)
return m;
}
case VM_STRING: {
- if (strncmp(str, op->args.s, op->len) != 0)
+ if (strncmp(str, op->args.s, (size_t)op->len) != 0)
return NULL;
match_t *m = calloc(sizeof(match_t), 1);
m->op = op;
@@ -447,3 +447,4 @@ void print_match(match_t *m, const char *color, int verbose)
}
}
+// vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1