| ??? 04/26/99 07:42 Read: times |
#392 - Comparision problems |
Hello!
I encountered a problem with LONG type comparision: ----------------------- unsigned long Buffer; Buffer = 0xFFFFFB3A; printf ("n %bX",(Buffer < 300)); /*prints '0'*/ printf ("n %bX",(Buffer <300L)); /*prints '1'*/ ----------------------- But those results are abnormal, aren`t? Buffer is an unsigned long value, and if we want to compare it to 300 decimal, we have to convert 300 to 300L. I think so. Am I wrong? Please, help me! |



