Skip to content

Commit

Permalink
Fix few C++ warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
sba1 committed Oct 31, 2018
1 parent d87d3b6 commit 76ebece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion boyermoore.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ struct boyermoore_context *boyermoore_create_context(char *p, int plen)
context->plen = plen;

/* Prepare bad character skip table */
for (i = 0; i < sizeof(context->skip_table)/sizeof(context->skip_table[0]); i++)
for (i = 0; i < (int)sizeof(context->skip_table)/sizeof(context->skip_table[0]); i++)
context->skip_table[i] = plen;
for (i = 0; i < plen - 1; i++)
context->skip_table[(unsigned char)p[i]] = plen - i - 1;
Expand Down
2 changes: 1 addition & 1 deletion string_pools.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct string_pool *string_pool_create(void)

/*****************************************************************************/

static int string_pool_ensure_space(struct string_pool *p, int wanted_size)
static int string_pool_ensure_space(struct string_pool *p, unsigned int wanted_size)
{
unsigned int new_ref_strings_allocated;
struct ref_string *new_ref_strings;
Expand Down

0 comments on commit 76ebece

Please sign in to comment.