UInt32 error?

  • Thread starter Thread starter Michel Racicot
  • Start date Start date
M

Michel Racicot

Hi there, The following code is troubling me:

UInt32 nOffset = nStringEntriesOffset + (40 * nIndex);

nStringEntriesOffset is a UInt32 containing 2124
nIndex is a UInt32 containing 5213

After the execution of the above line, nIndex equals to : 14036 !!!

What the hell is hapening?

Ins't supposed to contain 210644 instead ?!
 
UInt32 nStringEntriesOffset = 2124;

UInt32 nIndex = 5213;

UInt32 nOffset = nStringEntriesOffset + (40 * nIndex);

Console.WriteLine(nOffset.ToString());

Console.ReadLine();



Returns you : 210644 !!!!!!



José
 
Back
Top