Click to See Complete Forum and Search --> : signed/unsigned mismatch


sublime99
March 4th, 2008, 05:34 PM
hello

i have many many signed/unsigned mismatch errors. is there a popular solution. can i create my own unsgned int type and use it.

warning C4018: '<' : signed/unsigned mismatch
warning C4018: '=' : signed/unsigned mismatch

S_M_A
March 4th, 2008, 06:09 PM
Yes you can create your own type and use that but you will probably end up with the same situation. Try to fix the warnings instead. Are you really using the correct type of variable (signed/unsigned) where the warnings occur, it might be better to change?