Merge pull request #39 from js/fix-warning

Use size_t to avoid warning
This commit is contained in:
Devin Torres 2014-01-08 13:05:12 -08:00
commit 80df1df75f

View file

@ -211,7 +211,7 @@ smartypants_cb__dash(hoedown_buffer *ob, struct smartypants_data *smrt, uint8_t
static size_t
smartypants_cb__amp(hoedown_buffer *ob, struct smartypants_data *smrt, uint8_t previous_char, const uint8_t *text, size_t size)
{
int len;
size_t len;
if (size >= 6 && memcmp(text, """, 6) == 0) {
if (smartypants_quotes(ob, previous_char, size >= 7 ? text[6] : 0, 'd', &smrt->in_dquote))
return 5;