Enclose macro parameters in parenthesis.

This commit is contained in:
2021-09-22 01:07:11 +01:00
parent cac73b3ec4
commit 8b0c5b2e2d

View File

@@ -61,9 +61,9 @@ AARU_EXPORT void AARU_CALL spamsum_free(spamsum_ctx* ctx)
if(ctx) free(ctx);
}
#define ROLL_SUM(ctx) (ctx->roll.h1 + ctx->roll.h2 + ctx->roll.h3)
#define SUM_HASH(c, h) ((h * HASH_PRIME) ^ c);
#define SSDEEP_BS(index) (MIN_BLOCKSIZE << index)
#define ROLL_SUM(ctx) ((ctx)->roll.h1 + (ctx)->roll.h2 + (ctx)->roll.h3)
#define SUM_HASH(c, h) (((h) * HASH_PRIME) ^ (c));
#define SSDEEP_BS(index) (MIN_BLOCKSIZE << (index))
AARU_LOCAL void fuzzy_engine_step(spamsum_ctx* ctx, uint8_t c)
{