Avoid type-punned pointer deref, requested by agc in #297

This commit is contained in:
martin 2014-12-09 19:02:01 +00:00
parent a0fb08b18a
commit 17f763d261
1 changed files with 1 additions and 1 deletions

View File

@ -819,7 +819,7 @@ TIGER_Update(TIGER_CTX *ctx, const void *data, size_t length)
for (; j < 56; j++) {
u.temp8[j] = 0;
}
((uint64_t *)(void *)(&(u.temp8[56])))[0] = ((uint64_t)length) << 3;
u.temp64[7] = ((uint64_t)length) << 3;
tiger_compress(u.temp64, ctx->ctx);
}