cmark

My personal build of CMark ✏️

Commit
88c8ad11b687c756146d27d31b5a30f3cf13a75e
Parent
5c3e83145350f3ac8193a4e7dc1b3b63eb271787
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #213 from github/upstream/undefined-shift

Use unsigned integer when shifting

Diffstat

1 file changed, 1 insertion, 1 deletion

Status File Name N° Changes Insertions Deletions
Modified src/commonmark.c 2 1 1
diff --git 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;
     }