In the IEEE 754 floating point, a constant Infinityis represented by a value with all the bits of the fraction set to 0. When it was called by a 32-bit integer value when calculating the bitwise complement (unary operator ~), you get only zero, so the complement is all 1 bit or -1.
Positive Infinity:
01111111111100000000000000000000000000000000000000000000000000000
( ). 0, - 1 , - .