2 minor issues on Windows
bodrato at mail.dm.unipi.it
Sun Mar 13 10:24:14 CET 2022
Il 2022-03-13 00:06 Torbjörn Granlund ha scritto:
> There is some sort of sick competition between certain compilers to
> the most warnings for valid C. I don't think we should play their
> Incidantally, arithmetic on unsigned types is well-defined. Unlike
> of signed types.
> foo (int a, int b)
> return a + b - 1;
> $ clank foo.c
> warning: signed addition might overflow and yield undefined results
> warning: signed subtraction might overflow and yield undefined results
You are right!
More information about the gmp-bugs