channelmap: make sure a mask is generated is 64 bit int
authorLennart Poettering <lennart@poettering.net>
Wed, 17 Jun 2009 01:06:54 +0000 (03:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Jun 2009 01:06:54 +0000 (03:06 +0200)
src/pulse/channelmap.h

index d047426..d7901ac 100644 (file)
@@ -209,7 +209,7 @@ typedef enum pa_channel_position {
 typedef uint64_t pa_channel_position_mask_t;
 
 /** Makes a bit mask from a channel position. \since 0.9.16 */
-#define PA_CHANNEL_POSITION_MASK(f) ((pa_channel_position_mask_t) (1 << (f)))
+#define PA_CHANNEL_POSITION_MASK(f) ((pa_channel_position_mask_t) (1ULL << (f)))
 
 /** A list of channel mapping definitions for pa_channel_map_init_auto() */
 typedef enum pa_channel_map_def {