Use memcmp in hoedown_buffer_eq(...)
This commit is contained in:
parent
30dd50f16a
commit
8c14212dd9
1 changed files with 1 additions and 5 deletions
|
@ -121,11 +121,7 @@ int
|
|||
hoedown_buffer_eq(const hoedown_buffer *buf, const uint8_t *data, size_t size)
|
||||
{
|
||||
if (buf->size != size) return 0;
|
||||
|
||||
size_t i = 0;
|
||||
while (i < size && buf->data[i] == data[i]) i++;
|
||||
|
||||
return i == size;
|
||||
return memcmp(buf->data, data, size) == 0;
|
||||
}
|
||||
|
||||
int
|
||||
|
|
Loading…
Reference in a new issue