Actor
09-26-2010, 11:32 AM
I'm posting not as a plea for help but rather to describe an anomaly that others may find interesting.
I've had a rather curious bug surface in a program I'm developing that uses the BRIS single DRF file as input. I get a "range check error" when reading the BRIS speed figure, the DRF figure and the DRF variant. I had declared these to be unsigned integers since I did not anticipate these to ever be negative, but changing them to signed integers seems to have solved the problem, at least in the sense that the program no longer crashes.
However, even though changing the type to signed integer seems to have cured the problem, examination of the output does not reveal any occurrences of negative values for these variables. Second, the bug was always in the fifth race back, never in the first through fourth or in the sixth through the tenth.
Curiouser and curiouser.
:confused:
I've had a rather curious bug surface in a program I'm developing that uses the BRIS single DRF file as input. I get a "range check error" when reading the BRIS speed figure, the DRF figure and the DRF variant. I had declared these to be unsigned integers since I did not anticipate these to ever be negative, but changing them to signed integers seems to have solved the problem, at least in the sense that the program no longer crashes.
However, even though changing the type to signed integer seems to have cured the problem, examination of the output does not reveal any occurrences of negative values for these variables. Second, the bug was always in the fifth race back, never in the first through fourth or in the sixth through the tenth.
Curiouser and curiouser.
:confused: