From f08e6d50321096aa862e7924932dec74e51e3417 Mon Sep 17 00:00:00 2001 From: Andrzej Popowski Date: Thu, 24 Dec 2015 11:24:57 +0100 Subject: [PATCH] [Systeminfo] - fixing SVACE issues Change-Id: I874abee0df42658cbc713fa6c63f6678bdcc7182 Signed-off-by: Andrzej Popowski --- src/systeminfo/systeminfo-utils.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/systeminfo/systeminfo-utils.cpp b/src/systeminfo/systeminfo-utils.cpp index ac7b6b95..7877f7f3 100644 --- a/src/systeminfo/systeminfo-utils.cpp +++ b/src/systeminfo/systeminfo-utils.cpp @@ -127,7 +127,8 @@ PlatformResult SysteminfoUtils::GetTotalMemory(long long* result) { ("device_memory_get_total error: %d (%s)", ret, get_error_message(ret))); } - *result = static_cast(value*MEMORY_TO_BYTE); + *result = static_cast(value) * MEMORY_TO_BYTE; + return PlatformResult(ErrorCode::NO_ERROR); } @@ -144,7 +145,7 @@ PlatformResult SysteminfoUtils::GetAvailableMemory(long long* result) { ("device_memory_get_available error: %d (%s)", ret, get_error_message(ret))); } - *result = static_cast(value*MEMORY_TO_BYTE); + *result = static_cast(value) * MEMORY_TO_BYTE; return PlatformResult(ErrorCode::NO_ERROR); } -- 2.34.1