[pulseaudio-commits] r2450 - /trunk/src/pulse/volume.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sat May 17 02:08:14 PDT 2008


Author: lennart
Date: Sat May 17 11:08:13 2008
New Revision: 2450

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2450&root=pulseaudio&view=rev
Log:
type fixes for constants

Modified:
    trunk/src/pulse/volume.h

Modified: trunk/src/pulse/volume.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/volume.h?rev=2450&root=pulseaudio&r1=2449&r2=2450&view=diff
==============================================================================
--- trunk/src/pulse/volume.h (original)
+++ trunk/src/pulse/volume.h Sat May 17 11:08:13 2008
@@ -103,10 +103,10 @@
 typedef uint32_t pa_volume_t;
 
 /** Normal volume (100%) */
-#define PA_VOLUME_NORM ((pa_volume_t) 0x10000)
+#define PA_VOLUME_NORM ((pa_volume_t) 0x10000U)
 
 /** Muted volume (0%) */
-#define PA_VOLUME_MUTED ((pa_volume_t) 0)
+#define PA_VOLUME_MUTED ((pa_volume_t) 0U)
 
 /** A structure encapsulating a per-channel volume */
 typedef struct pa_cvolume {
@@ -169,7 +169,7 @@
 #define PA_DECIBEL_MININFTY ((double) -INFINITY)
 #else
 /** This value is used as minus infinity when using pa_volume_{to,from}_dB(). */
-#define PA_DECIBEL_MININFTY ((double) -200)
+#define PA_DECIBEL_MININFTY ((double) -200.0)
 #endif
 
 PA_C_DECL_END




More information about the pulseaudio-commits mailing list