From 2786fedcb5e2d5f02f889dd606b41e27460b1440 Mon Sep 17 00:00:00 2001 From: Jaroslaw Stelter Date: Thu, 3 Nov 2022 11:51:31 +0100 Subject: [PATCH] mux: fix FW build with xt-clang Newer Xtensa toolchain replaces xt-xcc with xt-clang. For some reason xt-clang fails to build SOF when uint8_t type is used as index of for() loop. This change unblocks building of SOF with xt-clang. Signed-off-by: Jaroslaw Stelter --- src/audio/mux/mux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/audio/mux/mux.c b/src/audio/mux/mux.c index 8c407c70e..9980b389c 100644 --- a/src/audio/mux/mux.c +++ b/src/audio/mux/mux.c @@ -101,8 +101,8 @@ static bool mux_mix_check(struct sof_mux_config *cfg) static int mux_set_values(struct comp_dev *dev, struct comp_data *cd, struct sof_mux_config *cfg) { - uint8_t i; - uint8_t j; + unsigned int i; + unsigned int j; comp_info(dev, "mux_set_values()");