E3019 Type Errors

signed-to-unsigned

cannot assign signed type to unsigned

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