summaryrefslogtreecommitdiffstats
path: root/generic/tclUniData.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-12-24 00:15:37 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-12-24 00:15:37 (GMT)
commitbd656d0e3881028b3b25a40e96d9253baabd44ec (patch)
tree80b45dd8b018a2a406128e2d65dd5ba6641eb428 /generic/tclUniData.c
parent7cc01f77560c27ac24cdc87a1171c1c75853a7cf (diff)
parente1074be4bf98ca2d9b91651693f0da2ee6c1042d (diff)
downloadtcl-bd656d0e3881028b3b25a40e96d9253baabd44ec.zip
tcl-bd656d0e3881028b3b25a40e96d9253baabd44ec.tar.gz
tcl-bd656d0e3881028b3b25a40e96d9253baabd44ec.tar.bz2
[Bug 3464428] string is graph \u0120 is wrong
Diffstat (limited to 'generic/tclUniData.c')
-rw-r--r--generic/tclUniData.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclUniData.c b/generic/tclUniData.c
index a06e84d..896580c 100644
--- a/generic/tclUniData.c
+++ b/generic/tclUniData.c
@@ -775,7 +775,7 @@ static const int groups[] = {
* Unicode character.
*/
-#define UNICODE_CATEGORY_MASK 0x1F
+#define UNICODE_CATEGORY_MASK 0x1f
#define UNICODE_OUT_OF_RANGE 0x10000u
enum {
@@ -817,8 +817,8 @@ enum {
* to do sign extension on right shifts.
*/
-#define GetCaseType(info) (((info) & 0xE0) >> 5)
-#define GetCategory(ch) (GetUniCharInfo(ch) & 0x1F)
+#define GetCaseType(info) (((info) & 0xe0) >> 5)
+#define GetCategory(ch) (GetUniCharInfo(ch) & 0x1f)
#define GetDelta(info) (((info) > 0) ? ((info) >> 15) : (~(~((info)) >> 15)))
/*