summaryrefslogtreecommitdiff
path: root/src/pulse/volume.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-05-17 09:08:13 +0000
committerLennart Poettering <lennart@poettering.net>2008-05-17 09:08:13 +0000
commitb2f8aecf4d4f2b145c5f044099aaa9674158b75b (patch)
tree950e7313e49e09d540c841ab4393e8ea21fa6544 /src/pulse/volume.h
parentb709ab50e0e894aa7a30de4ed056190aa39e7266 (diff)
type fixes for constants
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2450 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulse/volume.h')
-rw-r--r--src/pulse/volume.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pulse/volume.h b/src/pulse/volume.h
index e7ceb0d7..6df29afb 100644
--- a/src/pulse/volume.h
+++ b/src/pulse/volume.h
@@ -103,10 +103,10 @@ PA_C_DECL_BEGIN
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 @@ double pa_sw_volume_to_linear(pa_volume_t v) PA_GCC_CONST;
#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