Millis() with int

if ct = -31908 and pt = 32627 is considered. The if statement

if (ct - pt > 1000)

still works. Why?