conversion from a byte to a signed byte
Posted on 2013-06-20
hi - i'm using C#, VS2010 and .net 4. I have a line of code --
where the HIDData is typed as a byte array. I get an overflow exception saying that the value '254' is an overflow. I would have expected it to convert automatically to -2. it's not that I can't do the arithmetic to make it work, but I don't understand why it doesn't make the conversion.