[vlc-devel] [PATCH] atomic: prevent overflow
Quentin Chateau
quentin.chateau at gmail.com
Mon Feb 24 00:38:34 CET 2020
Meh, as always I realize that this is not sufficient right at the time I
confirm sending the patch.
Forgive my hurry, I should not code so late.
I'll probably do this properly tomorrow.
On Mon, Feb 24, 2020, 00:28 Quentin Chateau <quentin.chateau at gmail.com>
wrote:
> ---
> 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/95f1e507/attachment.html>
More information about the vlc-devel
mailing list