define h_not_in with size_t count as per declaration
This commit is contained in:
parent
49075be38a
commit
7678e8dd68
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue