From e353081cc2775a131d7fd95facd1b3330f15f5b7 Mon Sep 17 00:00:00 2001 From: Leon Date: Fri, 14 Jun 2019 15:04:30 +0200 Subject: [PATCH] fix msvc warnings --- crypto_kem/ledakemlt12/clean/dfr_test.c | 2 +- crypto_kem/ledakemlt32/clean/dfr_test.c | 2 +- crypto_kem/ledakemlt52/clean/dfr_test.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto_kem/ledakemlt12/clean/dfr_test.c b/crypto_kem/ledakemlt12/clean/dfr_test.c index b36861fa..70c4b26d 100644 --- a/crypto_kem/ledakemlt12/clean/dfr_test.c +++ b/crypto_kem/ledakemlt12/clean/dfr_test.c @@ -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; } diff --git a/crypto_kem/ledakemlt32/clean/dfr_test.c b/crypto_kem/ledakemlt32/clean/dfr_test.c index c9e6fb1c..f612e2a2 100644 --- a/crypto_kem/ledakemlt32/clean/dfr_test.c +++ b/crypto_kem/ledakemlt32/clean/dfr_test.c @@ -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; } diff --git a/crypto_kem/ledakemlt52/clean/dfr_test.c b/crypto_kem/ledakemlt52/clean/dfr_test.c index d82b3388..9e97cb17 100644 --- a/crypto_kem/ledakemlt52/clean/dfr_test.c +++ b/crypto_kem/ledakemlt52/clean/dfr_test.c @@ -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; }