Browse Source

fix msvc warnings

master
Leon 5 years ago
parent
commit
e353081cc2
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      crypto_kem/ledakemlt12/clean/dfr_test.c
  2. +1
    -1
      crypto_kem/ledakemlt32/clean/dfr_test.c
  3. +1
    -1
      crypto_kem/ledakemlt52/clean/dfr_test.c

+ 1
- 1
crypto_kem/ledakemlt12/clean/dfr_test.c View File

@@ -106,7 +106,7 @@ uint8_t PQCLEAN_LEDAKEMLT12_CLEAN_DFR_test(POSITION_T LSparse[N0][DV * M]) {
allBlockMaxSumstMinusOne;
}
if (DV * M > (allBlockMaxSumstMinusOne + allBlockMaxSumst)) {
return allBlockMaxSumst + 1;
return (uint8_t) allBlockMaxSumst + 1;
}
return DFR_TEST_FAIL;
}

+ 1
- 1
crypto_kem/ledakemlt32/clean/dfr_test.c View File

@@ -106,7 +106,7 @@ uint8_t PQCLEAN_LEDAKEMLT32_CLEAN_DFR_test(POSITION_T LSparse[N0][DV * M]) {
allBlockMaxSumstMinusOne;
}
if (DV * M > (allBlockMaxSumstMinusOne + allBlockMaxSumst)) {
return allBlockMaxSumst + 1;
return (uint8_t) allBlockMaxSumst + 1;
}
return DFR_TEST_FAIL;
}

+ 1
- 1
crypto_kem/ledakemlt52/clean/dfr_test.c View File

@@ -106,7 +106,7 @@ uint8_t PQCLEAN_LEDAKEMLT52_CLEAN_DFR_test(POSITION_T LSparse[N0][DV * M]) {
allBlockMaxSumstMinusOne;
}
if (DV * M > (allBlockMaxSumstMinusOne + allBlockMaxSumst)) {
return allBlockMaxSumst + 1;
return (uint8_t) allBlockMaxSumst + 1;
}
return DFR_TEST_FAIL;
}

Loading…
Cancel
Save