From 6315130ec6ade0c740c6c9c0c0aa335f83f062b5 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 19 Aug 2025 08:32:06 +1000 Subject: [PATCH] Make ma_lcg.state uint32 to avoid UB on signed arthimethic overflow --- miniaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniaudio.h b/miniaudio.h index 3f16adbd..938d1abf 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -4378,7 +4378,7 @@ typedef struct typedef struct { - ma_int32 state; + ma_uint32 state; } ma_lcg;