From 83ed01a2792b52a79dff6bf214477a73a7a20712 Mon Sep 17 00:00:00 2001 From: Ken Steele Date: Fri, 10 Oct 2014 10:34:48 -0400 Subject: [PATCH] Fix compiler warnings in ac-tile. Signed vs unsigned comparisons. --- src/util-mpm-ac-tile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util-mpm-ac-tile.c b/src/util-mpm-ac-tile.c index 7c098835f4..aa791b1e26 100644 --- a/src/util-mpm-ac-tile.c +++ b/src/util-mpm-ac-tile.c @@ -1035,7 +1035,7 @@ static void SCACTileClubOutputStatePresenceWithDeltaTable(MpmCtx *mpm_ctx) SCACTileCtx *ctx = search_ctx->init_ctx; int aa = 0; - int state = 0; + uint32_t state = 0; /* Allocate next-state table. */ int size = ctx->state_count * ctx->bytes_per_state * ctx->alphabet_storage; @@ -1071,7 +1071,7 @@ static inline void SCACTileInsertCaseSensitiveEntriesForPatterns(MpmCtx *mpm_ctx SCACTileSearchCtx *search_ctx = (SCACTileSearchCtx *)mpm_ctx->ctx; SCACTileCtx *ctx = search_ctx->init_ctx; - int state = 0; + uint32_t state = 0; uint32_t k = 0; for (state = 0; state < ctx->state_count; state++) { @@ -1401,7 +1401,7 @@ static void SCACTileDestroyInitCtx(MpmCtx *mpm_ctx) } if (ctx->output_table != NULL) { - int state; + uint32_t state; for (state = 0; state < ctx->state_count; state++) { if (ctx->output_table[state].patterns != NULL) { SCFree(ctx->output_table[state].patterns);