Compiler warning about comparing signed and unsigned value
I have the following main task:
The compiler complains about "*Warning*:Comparison between 'signed' and 'unsigned' operands.". I checked the help topic on the intrinsic nPgmTime variable. It said it is a "const long". I declared nextPeriod to be long. So they are both signed. Does the help on nPgmTime lie? Changing the declaration of nextPeriod to be "unsigned long" get rid of the warning. It is not a big deal but reporting it nevertheless.