diff --git a/tools/tplgtool2.py b/tools/tplgtool2.py index 0a2c205b..bb505f92 100755 --- a/tools/tplgtool2.py +++ b/tools/tplgtool2.py @@ -470,7 +470,7 @@ def __init__(self): "mask" / Int32ul, "count" / Int32ul, "texts" / Array(self._num_texts, String(self._id_name_maxlen, "ascii")), - "values" / Array(self._num_texts * self._id_name_maxlen / 4, Int32ul), + "values" / Array(int(self._num_texts * self._id_name_maxlen / 4), Int32ul), "priv" / self._private_raw, ) self._bytes_control_body = Struct( # `snd_soc_tplg_bytes_control` without `hdr`