Merge pull request #2 from pesco/h_not_in-size_t
define h_not_in with size_t count as per declaration
This commit is contained in:
commit
907069d358
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);
|
||||
HCharset cs = new_charset();
|
||||
for (int i = 0; i < 256; i++)
|
||||
for (size_t i = 0; i < 256; i++)
|
||||
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);
|
||||
|
||||
ret->vtable = &charset_vt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue