From 69aaaedd868dc30bbbb16c445a413b426574830b Mon Sep 17 00:00:00 2001 From: tudnai Date: Tue, 25 May 2021 10:15:17 -0700 Subject: [PATCH] casting to unsigned to avoid stereo channel confusion in sound generation --- src/util/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/common.h b/src/util/common.h index c210d70..a1438aa 100644 --- a/src/util/common.h +++ b/src/util/common.h @@ -58,7 +58,7 @@ // calculates number of cycles in one frame -#define MHZ(mhz) ( (mhz) * M ) +#define MHZ(mhz) ( (unsigned)( (mhz) * M ) ) #define FRAME(mhz) ( MHZ(mhz) / fps ) #define FRAME_INIT(mhz) ( MHZ(mhz) / DEFAULT_FPS )