I have an array with scancodes in it. It is defined like this:
Code: Select all
ubyte keymap[128]
When I compile (VS 2010), I get this error:
Code: Select all
keymap.h(18): warning C4305: 'initializing' : truncation from 'int' to 'ubyte'
It does work correctly, despite the warning. However, I would like a clean compile output. Is there a better way to do this, or is it best to just put up with the error?