diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:38:44 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-11 01:38:44 -0700 |
| commit | 2baadd9ba00a84b3daa5c7028e7129223fbd5b1d (patch) | |
| tree | adfc8af77a7edd866f28e0853aa6d7460b7abb86 /vm.c | |
| parent | 05ad83f8f08a342042e4cd05abbee733833c40a7 (diff) | |
Tightening up the makefile flags and vim modelines
Diffstat (limited to 'vm.c')
| -rw-r--r-- | vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
