1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-20 02:25:14 -07:00

MSVC analyzer FP

This commit is contained in:
Frank Denis 2016-03-05 17:56:40 +01:00
parent f4e5d6cb3b
commit db139ced5f
2 changed files with 6 additions and 0 deletions

View File

@ -160,7 +160,10 @@ int fill_segment_ref(const argon2_instance_t *instance,
/* 1.2 Computing the index of the reference block */ /* 1.2 Computing the index of the reference block */
/* 1.2.1 Taking pseudo-random value from the previous block */ /* 1.2.1 Taking pseudo-random value from the previous block */
if (data_independent_addressing) { if (data_independent_addressing) {
#pragma warning(push)
#pragma warning(disable: 6385)
pseudo_rand = pseudo_rands[i]; pseudo_rand = pseudo_rands[i];
#pragma warning(pop)
} else { } else {
pseudo_rand = instance->region->memory[prev_offset].v[0]; pseudo_rand = instance->region->memory[prev_offset].v[0];
} }

View File

@ -156,7 +156,10 @@ int fill_segment_ssse3(const argon2_instance_t *instance,
/* 1.2 Computing the index of the reference block */ /* 1.2 Computing the index of the reference block */
/* 1.2.1 Taking pseudo-random value from the previous block */ /* 1.2.1 Taking pseudo-random value from the previous block */
if (data_independent_addressing) { if (data_independent_addressing) {
#pragma warning(push)
#pragma warning(disable: 6385)
pseudo_rand = pseudo_rands[i]; pseudo_rand = pseudo_rands[i];
#pragma warning(pop)
} else { } else {
pseudo_rand = instance->region->memory[prev_offset].v[0]; pseudo_rand = instance->region->memory[prev_offset].v[0];
} }