This is specified in the C Standard.
C99 in 6.3.1.3p2 says:
"Otherwise, if the new type is unsigned, the value is converted by repeatedly adding or subtracting one more than the maximum value that can be represented in the new type until the value is in the range of the new type."
On a two's complement system, it means taking the least significant bits.