Silent modification of random variable under implicit type conversion

When you change the code so that action is an Int64 instead of an UInt64, that changes the return type of your function, which will cause the calling functions to recompile, which will change the memory location of the machine code, which can affect a bug elsewhere in the code…

Or it could be the fact that the return value is an UInt64 that directly triggers the bug.

1 Like