From dc8178d43e30b4d56788339fb2475fa9ca0822c4 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sat, 9 May 2020 15:27:35 +0200 Subject: [PATCH] Remove type-limits warning --- client/src/cmdhfmfhard.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhfmfhard.c b/client/src/cmdhfmfhard.c index 2a245df37..0e421a80a 100644 --- a/client/src/cmdhfmfhard.c +++ b/client/src/cmdhfmfhard.c @@ -1230,7 +1230,8 @@ static void check_for_BitFlipProperties(bool time_budget) { args[i][1] = MIN(args[i][0] + bytes_per_thread - 1, 255); args[i][2] = time_budget; } - args[NUM_CHECK_BITFLIPS_THREADS - 1][1] = MAX(args[NUM_CHECK_BITFLIPS_THREADS - 1][1], 255); + // args[][] is uint8_t so max 255, no need to check it + // args[NUM_CHECK_BITFLIPS_THREADS - 1][1] = MAX(args[NUM_CHECK_BITFLIPS_THREADS - 1][1], 255); // start threads for (uint8_t i = 0; i < NUM_CHECK_BITFLIPS_THREADS; i++) {