You must move the Int64 variable. I am parsing pseudo mathematical functions from a database file. The variables are uint32 or int32, so I put them in Int64 to handle them the same way without losing anything. In one of my treenodes, I need an Int64 bitrate.
Unfortunately, the shift operator does not apply to Int64. Is there a standard Int64 bit offset method that I don't know about?
int a32 = 1;
int b32 = 2;
int c32 = a32 >> b32;
Int64 a64 = 1;
Int64 b64 = 2;
Int64 c64 = a64 >> b64;
source
share