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

Quentin Chateau quentin.chateau at gmail.com
Mon Feb 24 00:28:25 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200224/99ea18ef/attachment.html>


More information about the vlc-devel mailing list