commit | 99a68cc445382e9f9833e9c43b3158e8585cef7a | [log] [tgz] |
---|---|---|
author | Joanna Farley <joanna.farley@arm.com> | Thu Apr 06 13:51:25 2023 +0200 |
committer | TrustedFirmware Code Review <review@review.trustedfirmware.org> | Thu Apr 06 13:51:25 2023 +0200 |
tree | 98fef21695d8c980813f5889f563b4907dbef8d0 | |
parent | fd495dbfa3cbf62e8b9cccdf61a43931afc3f735 [diff] | |
parent | a2023d7c04648e3e7a1f22b2dbeb80bc3d3e00bf [diff] |
Merge "fix(scmi): fix compilation error in scmi base" into integration
diff --git a/drivers/scmi-msg/base.c b/drivers/scmi-msg/base.c index 2db4d7e..52502a5 100644 --- a/drivers/scmi-msg/base.c +++ b/drivers/scmi-msg/base.c
@@ -151,7 +151,8 @@ count = count_protocols_in_list(list); if (count > a2p->skip) { - count = MIN(count - a2p->skip, msg->out_size - sizeof(p2a)); + count = MIN((uint32_t)(count - a2p->skip), + (uint32_t)(msg->out_size - sizeof(p2a))); } else { count = 0U; }