diff options
author | Jack Lloyd <[email protected]> | 2019-06-29 16:16:21 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-06-29 17:11:19 -0400 |
commit | 8b8745236368c70a82db2b19feeed5e9f9b59c5b (patch) | |
tree | 1495a04a7e6f117e2cacd69ff0f7b2c4a31ddee9 /src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp | |
parent | 5922b1c3abf00c0e22e86498e1ee3a51e5343b0f (diff) |
Fix various MSVC warnings
Diffstat (limited to 'src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp')
-rw-r--r-- | src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp index 1d35447fa..2c0f32194 100644 --- a/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp +++ b/src/lib/pubkey/mce/gf2m_rootfind_dcmp.cpp @@ -19,15 +19,13 @@ uint32_t patch_root_array(gf2m* res_root_arr, uint32_t res_root_arr_len, uint32_t root_pos) { - volatile uint32_t i; volatile gf2m patch_elem = 0x01; volatile gf2m cond_mask = (root_pos == res_root_arr_len); cond_mask = expand_mask_16bit(cond_mask); cond_mask = ~cond_mask; /* now cond = 1 if not enough roots */ patch_elem &= cond_mask; - for(i = 0; i < res_root_arr_len; i++) + for(size_t i = 0; i < res_root_arr_len; i++) { - gf2m masked_patch_elem = (patch_elem++) & cond_mask; res_root_arr[i] ^= masked_patch_elem++; } |