Skip to content

Conversation

@dcpleung
Copy link
Member

@dcpleung dcpleung commented Nov 3, 2025

xt-clang complains about the clock ratio difference is unsigned when being fed to abs(), though GCC does not. So type cast that to signed integer before feeding to abs(). Clock ratio could be big enough to overflow signed 32-bit integer. So we first cast it to be a signed 64-bit integer before substraction.

xt-clang complains about the clock ratio difference is unsigned when being fed to abs(), though GCC does not. So type cast that to signed integer before feeding to abs(). Clock ratio could be big enough to overflow signed 32-bit integer. So we first cast it to be a signed 64-bit integer before substraction. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
@dcpleung dcpleung marked this pull request as ready for review November 3, 2025 20:48
@zephyrbot zephyrbot added platform: Intel ADSP Intel Audio platforms size: XS A PR changing only a single line of code area: Tests Issues related to a particular existing or missing test labels Nov 3, 2025
@jhedberg
Copy link
Member

jhedberg commented Nov 6, 2025

Should this go to 4.3? If so, please set the milestone and reference a bug report.

@dcpleung
Copy link
Member Author

dcpleung commented Nov 6, 2025

Should be okay. It is not a blocker at this point. I can wait a bit.

@jhedberg jhedberg added this to the v4.4.0 milestone Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Tests Issues related to a particular existing or missing test platform: Intel ADSP Intel Audio platforms size: XS A PR changing only a single line of code

6 participants