Skip to content

Commit

Permalink
Fix a likely typo
Browse files Browse the repository at this point in the history
This is almost certainly meant to check that the next character is in range.
  • Loading branch information
kohler committed Dec 30, 2015
1 parent 3b3e47f commit be47eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/redcarpet/markdown.c
Expand Up @@ -613,7 +613,7 @@ parse_emph1(struct buf *ob, struct sd_markdown *rndr, uint8_t *data, size_t size
if (data[i] == c && !_isspace(data[i - 1])) {

if (rndr->ext_flags & MKDEXT_NO_INTRA_EMPHASIS) {
if (i + i < size && _isalnum(data[i + 1]))
if (i + 1 < size && _isalnum(data[i + 1]))
continue;
}

Expand Down

0 comments on commit be47eb2

Please sign in to comment.