This is just a warning is not necessarily wrong Must be familiar with the range of data to be processed, if convinced that there is no problem, to avoid this warning can be combined with a casting If it was the problem to change the type of the variable, before and after let can match
CodePudding user response:
This is a warning, and tell you the solution, casts,, Or just use the same type,
CodePudding user response:
Personally, I think he is prompt in this kind of mistake, I guess, you can try to verify:
Char a=- 128, b=128; Int c=a - b; May hopefully result is - 256, but this time will be 0 c? You try it, I don't think it's tip is this meaning