X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=pcre_internal.h;h=2923b29f82deccd1c63bda1eb726e52f04f88e11;hb=cef3458b870c4ae76061d6238197dcf96dc9690b;hp=dbfe80ebdc6246c6f367ef36bfea1a613d67fa56;hpb=50aa7778a6bb8b81a9e03e8744f797362183772e;p=pcre3.git diff --git a/pcre_internal.h b/pcre_internal.h index dbfe80e..2923b29 100644 --- a/pcre_internal.h +++ b/pcre_internal.h @@ -275,7 +275,7 @@ pcre.h(.in) and disable (comment out) this message. */ typedef pcre_uint16 pcre_uchar; #define UCHAR_SHIFT (1) -#define IN_UCHARS(x) ((x) << UCHAR_SHIFT) +#define IN_UCHARS(x) ((x) * 2) #define MAX_255(c) ((c) <= 255u) #define TABLE_GET(c, table, default) (MAX_255(c)? ((table)[c]):(default)) @@ -283,7 +283,7 @@ typedef pcre_uint16 pcre_uchar; typedef pcre_uint32 pcre_uchar; #define UCHAR_SHIFT (2) -#define IN_UCHARS(x) ((x) << UCHAR_SHIFT) +#define IN_UCHARS(x) ((x) * 4) #define MAX_255(c) ((c) <= 255u) #define TABLE_GET(c, table, default) (MAX_255(c)? ((table)[c]):(default))