[vlc-devel] [PATCH] atomic: prevent overflow

Quentin Chateau quentin.chateau at gmail.com
Sun Feb 23 23:27:22 CET 2020


---
 include/vlc_atomic.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/vlc_atomic.h b/include/vlc_atomic.h
index e2d4fe5360..952852dbd9 100644
--- a/include/vlc_atomic.h
+++ b/include/vlc_atomic.h
@@ -60,7 +60,7 @@ static inline void vlc_atomic_store_float(vlc_atomic_float *atom, float f)
 }
 
 typedef struct vlc_atomic_rc_t {
-    atomic_uint refs;
+    atomic_uintptr_t refs;
 } vlc_atomic_rc_t;
 
 /** Init the RC to 1 */
-- 
2.20.1



More information about the vlc-devel mailing list