[Ffmpeg-devel] Compiler warnings (original) (raw)

Måns Rullgård mru
Thu Feb 2 12:15:10 CET 2006


Erik Slagter said:

On Thu, 2006-02-02 at 01:45 +0000, M?ns Rullg?rd wrote:

I can think of cases where a signed/unsigned difference could cause unexpected behavior, but these are rare. Grmbl. If char's would have been unsigned by default, since the beginning, imho this "warning" problem wouldn't have been there at all. What would have driven the person that invented this? :-(

The cases I was thinking of are not limited to 8-bit types. Anything involving arithmetic on numbers with the top bit set can give strange results if the signed and unsigned types are mixed.

-- M?ns Rullg?rd mru at inprovide.com



More information about the ffmpeg-devel mailing list