diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2020-09-14 12:43:28 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2020-09-14 12:43:28 -0700 |
| commit | 018f2b06ce2e2a44ee6c1379f94db38aaec73d6c (patch) | |
| tree | b7f77a04f2cde33b0f9815f9267cfc66b78c3976 | |
| parent | 99404cb4809158ecf1c9b02288b1c886891baab3 (diff) | |
Fixing compiler warnings
| -rw-r--r-- | compiler.c | 2 | ||||
| -rw-r--r-- | vm.h | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -101,7 +101,7 @@ vm_op_t *bpeg_simplepattern(const char *str) if (matchchar(&str, '.')) // "..." op->multiline = 1; vm_op_t *till = bpeg_simplepattern(str); - str = str; // Don't advance str, the following pattern will be re-matched. + // Don't advance str, the following pattern will be re-matched. op->op = VM_UPTO; op->len = -1; op->args.pat = till; @@ -6,6 +6,7 @@ #include <stdlib.h> #include <string.h> +#include <strings.h> #include <sys/types.h> #include "types.h" |
