- fixed the type punning (compilation warnings with the recent GCC).

This commit is contained in:
Takashi Iwai 2004-01-31 12:16:32 +00:00
parent 7a5a9f018c
commit 08874160c8
3 changed files with 37 additions and 28 deletions

View file

@ -787,3 +787,15 @@ int snd_pcm_hw_open_fd(snd_pcm_t **pcmp, const char *name, int fd, int mmap_emul
(1U << SND_PCM_FORMAT_FLOAT_BE) | \
(1U << SND_PCM_FORMAT_FLOAT64_LE) | \
(1U << SND_PCM_FORMAT_FLOAT64_BE)) }
typedef union snd_tmp_float {
float f;
int32_t i;
} snd_tmp_float_t;
typedef union snd_tmp_double {
double d;
int64_t l;
} snd_tmp_double_t;