From 0c74e084d5ed82407071c437ed0ecd7faa4b176b Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 17 Oct 2022 16:09:58 +0200 Subject: [PATCH] Fix condition Signed-off-by: Gabor Mezei --- tests/suites/test_suite_mpi.function | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index dcfa75d451..833b0108ce 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -811,7 +811,7 @@ void mpi_core_cond_assign( data_t * input_X, /* Check if the given length is copied even it is smaller than the bytesgth of the given MPIs. */ - if( copy_limbs != limbs ) + if( copy_limbs < limbs ) { ASSERT_COMPARE( X, copy_bytes, Y, copy_bytes ); TEST_ASSERT( memcmp( X, Y, bytes ) != 0 ); @@ -882,7 +882,7 @@ void mpi_core_cond_swap( data_t * input_X, /* Check if the given length is copied even it is smaller than the length of the given MPIs. */ - if( copy_limbs != limbs ) + if( copy_limbs < limbs ) { ASSERT_COMPARE( X, copy_bytes, tmp_Y, copy_bytes ); ASSERT_COMPARE( Y, copy_bytes, tmp_X, copy_bytes ); @@ -965,7 +965,7 @@ void mpi_mod_raw_cond_assign( data_t * input_X, /* Check if the given length is copied even it is smaller than the length of the given MPIs. */ - if( copy_limbs != limbs ) + if( copy_limbs