E3019 Types Errors

Types

cannot assign signed type '%s' to unsigned type '%s'; value may be negative

When this occurs

Assigning signed int to unsigned int type

Example error message

error[E3019]: cannot assign signed type 'int' to unsigned type 'uint'

How to fix

Cannot assign a signed type to an unsigned variable. Use explicit conversion or change the variable type.

Related errors