Hello,
I have a pretty interesting problem here..
Ok, I have an integer that needs to be right shifted, and then
converted to a char.. which is then is used to build a string. Heres
an example of the steps:
long Value = 1667688574;
char c1 = Value >24; // produces '99' or 'c'
char c2 = Value >16; // produces '25446' or '’Í'
char c3 = Value >8; // generates OverflowException "Value was
either too large or too small for a character."
char c4 = Value >0; // never gets executed due to the error above
The error gets thrown using long, ulong, etc..
The same scenario in php produces 'c' 'f' '¨¨' and '~', respectively.
Any ideas as to what I may be doing wrong?