define h_not_in with size_t count as per declaration

This commit is contained in:
Sven M. Hallberg 2012-05-28 14:35:28 +02:00
parent 49075be38a
commit 7678e8dd68

View file

@ -28,12 +28,12 @@ const HParser* h_ch_range(const uint8_t lower, const uint8_t upper) {
} }
const HParser* h_not_in(const uint8_t *options, int count) { const HParser* h_not_in(const uint8_t *options, size_t count) {
HParser *ret = g_new(HParser, 1); HParser *ret = g_new(HParser, 1);
HCharset cs = new_charset(); HCharset cs = new_charset();
for (int i = 0; i < 256; i++) for (size_t i = 0; i < 256; i++)
charset_set(cs, i, 1); charset_set(cs, i, 1);
for (int i = 0; i < count; i++) for (size_t i = 0; i < count; i++)
charset_set(cs, options[i], 0); charset_set(cs, options[i], 0);
ret->vtable = &charset_vt; ret->vtable = &charset_vt;