[pulseaudio-commits] r2472 - /trunk/src/daemon/daemon-conf.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 21 15:42:33 PDT 2008


Author: lennart
Date: Thu May 22 00:42:32 2008
New Revision: 2472

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2472&root=pulseaudio&view=rev
Log:
fix a compiler warning

Modified:
    trunk/src/daemon/daemon-conf.c

Modified: trunk/src/daemon/daemon-conf.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/daemon/daemon-conf.c?rev=2472&root=pulseaudio&r1=2471&r2=2472&view=diff
==============================================================================
--- trunk/src/daemon/daemon-conf.c (original)
+++ trunk/src/daemon/daemon-conf.c Thu May 22 00:42:32 2008
@@ -295,7 +295,7 @@
     pa_assert(rvalue);
     pa_assert(data);
 
-    if (pa_atoi(rvalue, &r) < 0 || r > PA_RATE_MAX || r <= 0) {
+    if (pa_atoi(rvalue, &r) < 0 || r > (int32_t) PA_RATE_MAX || r <= 0) {
         pa_log("[%s:%u] Invalid sample rate '%s'.", filename, line, rvalue);
         return -1;
     }
@@ -313,7 +313,7 @@
     pa_assert(rvalue);
     pa_assert(data);
 
-    if (pa_atoi(rvalue, &n) < 0 || n > PA_CHANNELS_MAX || n <= 0) {
+    if (pa_atoi(rvalue, &n) < 0 || n > (int32_t) PA_CHANNELS_MAX || n <= 0) {
         pa_log("[%s:%u] Invalid sample channels '%s'.", filename, line, rvalue);
         return -1;
     }




More information about the pulseaudio-commits mailing list