Jonathan M Davis <> changed:

           What    |Removed                     |Added
                 CC|                            |
           Platform|Other                       |All
         OS/Version|Windows                     |All
           Severity|normal                      |enhancement

--- Comment #1 from Jonathan M Davis <> 2011-07-24 16:06:40 
PDT ---
That's debatable. There _are_ cases where you wouldn't want a negative value to
be converted to an unsigned integral value, but there are also cases where you
_would_ want it to happen. For better or worse, unsigned integral values
implicitly convert to signed integral values of the same size. It ends up using
the most basic version of

T toImpl(T, S)(S value)
    if (isImplicitlyConvertible!(S, T))
    return value;

This isn't a bug. It _might_ be a change that we want to make, but it's not a
bug. This is the expected behavior. You wouldn't get any more of an error if
you just assigned to a uint from an int directly.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to