I have written some number-format conversion programs. Each one
converts between two formats. In both programs that take Hex
numbers as input, when the input number is "FFFF", the program
ALWAYS returns the maximum number that a DWORD variable can hold.
For all other input numbers, the programs work correctly.
I can only conclude that it's a bug in the compiler.
ADDENDUM: the same error occurs on ANY hex number where the high-bit
of the LOWORD of the DWORD variable is set. However, this has only
been borne out while using 4-character hex input numbers
(i.e., 8??? - F???) - I haven't tested it on numbers that use
more than 4 characters.
------------------
Clay C. Clear
[email protected]
http://www.v3space.com/a/a39/202/
[This message has been edited by Clay Clear (edited July 21, 2001).]
converts between two formats. In both programs that take Hex
numbers as input, when the input number is "FFFF", the program
ALWAYS returns the maximum number that a DWORD variable can hold.
For all other input numbers, the programs work correctly.
I can only conclude that it's a bug in the compiler.

ADDENDUM: the same error occurs on ANY hex number where the high-bit
of the LOWORD of the DWORD variable is set. However, this has only
been borne out while using 4-character hex input numbers
(i.e., 8??? - F???) - I haven't tested it on numbers that use
more than 4 characters.
------------------
Clay C. Clear
[email protected]
http://www.v3space.com/a/a39/202/
[This message has been edited by Clay Clear (edited July 21, 2001).]
Comment