It's a 32 bit signed integer, so any value of `retries` exceeding 31 will cause the value to overflow.