|
Ari Rahikkala
|
 |
Unreported loss of streaming in atomic read operation
Oct 1999 time: 07:14
|
|
Yep, it's a bug. In fact, what happened was that you overflowed some variable, not the final score variable itself, though. I'd say that some value that was stored in a signed variable (signed variable -> can have a negative value) went over 127, thus going to the negative.
Then when the final score variable was multiplied by this variable your final score went to negative, too. I'd guess that the final score is a long int (long integer -> range 0-65535, or -32768-32767 if signed).
EDIT after Paul's post: Then again, I'm not too sure...
|