Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 07be78d5 authored by Maheedhar Bollapalli's avatar Maheedhar Bollapalli
Browse files

fix(versal2): typecast operands to match data type


This corrects the MISRA violation C2012-10.3:
The value of an expression shall not be assigned to an object with a
narrower essential type or of a different essential type category.
The condition is explicitly checked against 0U, appending 'U' and
typecasting for unsigned comparison.

Change-Id: I37ec9f8d716347df9acea5eb084f5a423a32a058
Signed-off-by: default avatarMaheedhar Bollapalli <maheedharsai.bollapalli@amd.com>
parent 8e4d5c6d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment