From 2baadd9ba00a84b3daa5c7028e7129223fbd5b1d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 11 Sep 2020 01:38:44 -0700 Subject: Tightening up the makefile flags and vim modelines --- vm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vm.c') 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 -- cgit v1.2.3