flagging unsigned subtraction assigned to bigger signed number?
Walter Bright
newshound2 at digitalmars.com
Sat May 24 02:38:52 UTC 2025
On 5/21/2025 6:27 PM, Steven Schveighoffer wrote:
> It's so clever, in fact, that it doesn't work. I'll let you discover why.
LOL, you're right. While the types are correct, the wrap around still makes it
wrong.
BTW, if you typed everything but the float as `int`, you still have the same
problem. It's not the unsigned conversion that is wrong.
More information about the Digitalmars-d
mailing list