commit | b3c92e6f538e5dc30565a68a8d1c074b46840632 | [log] [tgz] |
---|---|---|
author | Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com> | Mon Oct 21 05:23:53 2024 +0000 |
committer | Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com> | Fri Dec 20 11:00:57 2024 +0000 |
tree | b54ffc4328916ac70e14d48e44bf330311580271 | |
parent | 937b77dca98e8f18340f2102fcb8665852f440ca [diff] |
fix(versal): typecast expressions to match data type This corrects the MISRA violation C2012-10.4: Both operands of an operator in which the usual arithmetic conversions are performed shall have the same essential type category. The condition is explicitly checked against 0U, appending 'U' and typecasting for unsigned comparison. Change-Id: Ide520aa8ec900d0e23e80753d7082e34b6897e8f Signed-off-by: Maheedhar Bollapalli <maheedharsai.bollapalli@amd.com>