Le duodi 22 germinal, an CCXXIII, Diego Biurrun a écrit : > > > - unsigned int code = -1; > > > + unsigned int code = 0xffffffff; > > Why change this? AFAIK it's perfectly valid C. > Citation required.
# A computation involving unsigned operands can never overflow, because a # result that cannot be represented by the resulting unsigned integer type is # reduced modulo the number that is one greater than the largest value that # can be represented by the resulting type. (6.2.5 Types, #9) Speaking only for me, I would find very rude if I were to express and force on others ideas on readability and validity about a language that I do not actually know. Regards, -- Nicolas George
signature.asc
Description: Digital signature
_______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
