What it is doing is taking the unsigned int 12 and trying to convert it into a negative value (the -
) which requires a conversion to a type that can handle negative numbers as an unsigned int cannot.
Because it is an unsigned int it has possible values outside the range of int, so conversion to a long is required.