summaryrefslogtreecommitdiff
path: root/src/pcre2_extuni.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-04-12 14:40:27 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-04-12 14:40:27 +0000
commit7e3dd80809ec0f6b16df60e17effcfd4fc445aeb (patch)
tree5a11d8e78c6b025705ce9ff7bdf53fa9b38057b3 /src/pcre2_extuni.c
parent706a1c624c591e404a7739b49fd33830427ff2af (diff)
downloadpcre2-7e3dd80809ec0f6b16df60e17effcfd4fc445aeb.tar.gz
Change a number of expressions like 1<<10 to 1u<<10.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1083 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_extuni.c')
-rw-r--r--src/pcre2_extuni.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcre2_extuni.c b/src/pcre2_extuni.c
index 237211a..5a719e9 100644
--- a/src/pcre2_extuni.c
+++ b/src/pcre2_extuni.c
@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
- New API code Copyright (c) 2016-2018 University of Cambridge
+ New API code Copyright (c) 2016-2019 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -100,7 +100,7 @@ while (eptr < end_subject)
int len = 1;
if (!utf) c = *eptr; else { GETCHARLEN(c, eptr, len); }
rgb = UCD_GRAPHBREAK(c);
- if ((PRIV(ucp_gbtable)[lgb] & (1 << rgb)) == 0) break;
+ if ((PRIV(ucp_gbtable)[lgb] & (1u << rgb)) == 0) break;
/* Not breaking between Regional Indicators is allowed only if there
are an even number of preceding RIs. */