diff options
Diffstat (limited to 'byteswap.c')
-rw-r--r-- | byteswap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,14 +43,14 @@ static void byteswap32(void *_dst, size_t dstr, const void *_src, size_t sstr, s byteswap_func_t get_byteswap_func(sa_pcm_format_t f) { - static const byteswap_func_t funcs[SA_PCM_FORMAT_MAX] = { + static const byteswap_func_t funcs[_SA_PCM_FORMAT_MAX] = { [SA_PCM_FORMAT_S16_RE] = byteswap16, [SA_PCM_FORMAT_S24_RE] = byteswap24, [SA_PCM_FORMAT_S32_RE] = byteswap32, [SA_PCM_FORMAT_FLOAT32_BE] = byteswap32, }; - sa_assert(f < SA_PCM_FORMAT_MAX); + sa_assert(f < _SA_PCM_FORMAT_MAX); return funcs[f]; } |