Original Post
im trying to load some information from a bmp file into my program. reading the data works great. once i load the data, i scan through it trying to find certain color values. the data is of type unsigned char. when i compile the program in Dev-C++ it gives me a warning: comparison is always false due to limited range of data type im checking my values like this: if(image_data == (char)255) //checks to see if color channel is (char)255 it works fine if i check for a value of 0. any ideas? the problem is probably staring me in the face, but i just cant see it lol.