From af44bd83ff63d98536ad3eee809e9423a0f249eb Mon Sep 17 00:00:00 2001
From: athatheo <vostidi@hotmail.com>
Date: Tue, 16 Apr 2019 17:06:50 +0300
Subject: [PATCH] Fixed MISRA compliance 12.1

---
 src/Services/EventActionService.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp
index e1ce10de..a78f2b56 100644
--- a/src/Services/EventActionService.cpp
+++ b/src/Services/EventActionService.cpp
@@ -19,7 +19,7 @@ void EventActionService::addEventActionDefinitions(Message& message) {
 			}
 		}
 	}
-	if (message.dataSize - 6 > ECSS_TC_REQUEST_STRING_SIZE) {
+	if ((message.dataSize - 6) > ECSS_TC_REQUEST_STRING_SIZE) {
 		canBeAdded = false;
 		ErrorHandler::reportInternalError(ErrorHandler::MessageTooLarge);
 	}
-- 
GitLab