[pulseaudio-discuss] [PATCH] alsa-mixer: Get rid of a compiler warning.

Colin Guthrie gmane at colin.guthr.ie
Mon Mar 28 01:53:15 PDT 2011


'Twas brillig, and Tanu Kaskinen at 27/03/11 19:35 did gyre and gimble:
> On 64-bit systems LONG_MAX is greater than the largest possible value of a
> uint32_t variable, which caused the compiler to warn about a comparison that is
> always false. On 32-bit systems pa_atou() can return a value that will overflow
> when assigned to e->volume_limit, which has type long, so the comparison was
> necessary.

Thanks.

Merged in my tree.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list