fix(lib/realm): fix MISRA C:2012 Rule 10.1,4 in buffer.c
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I6b3539ed7053b908667231ec41cd984ef2c66583
diff --git a/lib/realm/tests/realm_test_utils.c b/lib/realm/tests/realm_test_utils.c
index f6fe712..c90ecae 100644
--- a/lib/realm/tests/realm_test_utils.c
+++ b/lib/realm/tests/realm_test_utils.c
@@ -33,7 +33,7 @@
*/
uintptr_t realm_test_util_slot_va_from_pa(uintptr_t pa)
{
- for (unsigned int i = 0U; i < NR_CPU_SLOTS; i++) {
+ for (unsigned int i = 0U; i < (unsigned int)NR_CPU_SLOTS; i++) {
if (pa == realm_test_util_slot_to_pa((enum buffer_slot)i)) {
/*
* Found a slot returning the same address, get