summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-07-11 09:54:38 +0200
committerGitHub <noreply@github.com>2017-07-11 09:54:38 +0200
commit88c8ad11b687c756146d27d31b5a30f3cf13a75e (patch)
tree74c07b97bad5b2ab444a4e9b00f24c6110357d69 /src
parent5c3e83145350f3ac8193a4e7dc1b3b63eb271787 (diff)
parentc07bb95a832d041b8a61b48037a4e7a987314aca (diff)
Merge pull request #213 from github/upstream/undefined-shift
Use unsigned integer when shifting
Diffstat (limited to 'src')
-rw-r--r--src/commonmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index a9ba566..95a1ae5 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -93,7 +93,7 @@ static int shortest_unused_backtick_sequence(const char *code) {
current++;
} else {
if (current > 0 && current < 32) {
- used |= (1 << current);
+ used |= (1U << current);
}
current = 0;
}