Properly clamp sint32 and sint64 values.