Home > Back-end >  Implicit conversion problem
Implicit conversion problem

Time:10-15

The code is as follows:
32 for (INT I=0; i <39; I++)
{
The sum +=data [10] + ii;
}
The sum is UINT16
The data is UINT8 (0 XFF)
The data also conducted some assignment operation front,
Problem: the conversion to 'UINT16' from 'int' may alter its value


I want to ask how can appear int? Caused by the implicit conversion? How to solve this problem?
  • Related