Why is this an issue?

An implicit conversion in an expression truncating a type, potentially loses data.

Carefully review this implicit conversion and add an explicit cast if it is intentional to silence the issue.

How to fix it

Code examples

Noncompliant code example

int a;
logic [1:0] b = a;

Compliant solution

int a;
logic [1:0] b = logic [1:0]'(a);