chiark
/
gitweb
/
~ian
/
pcre3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add .gitignore for upstream files
[pcre3.git]
/
pcre_internal.h
diff --git
a/pcre_internal.h
b/pcre_internal.h
index dbfe80ebdc6246c6f367ef36bfea1a613d67fa56..2923b29f82deccd1c63bda1eb726e52f04f88e11 100644
(file)
--- 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)
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))
#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)
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))
#define MAX_255(c) ((c) <= 255u)
#define TABLE_GET(c, table, default) (MAX_255(c)? ((table)[c]):(default))