diff options
Diffstat (limited to 'regparse.h')
-rw-r--r-- | regparse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/regparse.h b/regparse.h index fbe5a251a6..e1a00ddfda 100644 --- a/regparse.h +++ b/regparse.h @@ -100,7 +100,7 @@ #define NSTR_AMBIG (1<<1) #define NSTR_DONT_GET_OPT_INFO (1<<2) -#define NSTRING_LEN(node) ((node)->u.str.end - (node)->u.str.s) +#define NSTRING_LEN(node) (OnigDistance)((node)->u.str.end - (node)->u.str.s) #define NSTRING_SET_RAW(node) (node)->u.str.flag |= NSTR_RAW #define NSTRING_CLEAR_RAW(node) (node)->u.str.flag &= ~NSTR_RAW #define NSTRING_SET_AMBIG(node) (node)->u.str.flag |= NSTR_AMBIG |