-1 6 ?? comparing negatives with positives = wierd

Started by
9 comments, last by Inmate2993 18 years, 11 months ago
Signed:
6 = 6
-1 = -1

Unsigned:
6 = 6
-1 = 4294967295

-1 < 6
4294967295 > 6

You have implicit coercion going on.
william bubel

This topic is closed to new replies.

Advertisement