diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-05-21 13:34:44 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2016-05-21 13:34:44 +0000 |
commit | 5e10ce8642fc9e4862d0717a8171c7b6483befea (patch) | |
tree | 6b9ed021799cecdd55a462652c568b820a58ea40 /pcre_internal.h | |
parent | 166adb37b3b516b4a629030ef39f1b5da32bc185 (diff) | |
download | pcre-5e10ce8642fc9e4862d0717a8171c7b6483befea.tar.gz |
Minor refactor to avoid "left shift of negative value" warning.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1649 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_internal.h')
-rw-r--r-- | pcre_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |