[vlc-devel] [PATCH] vlc_bits: fix a bad cast when included from C++

Steve Lhomme robux4 at videolabs.io
Tue Jan 19 13:41:01 CET 2016


---
 include/vlc_bits.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/vlc_bits.h b/include/vlc_bits.h
index 7f6b67a..bb38363 100644
--- a/include/vlc_bits.h
+++ b/include/vlc_bits.h
@@ -53,7 +53,8 @@ static inline void bs_write_init( bs_t *s, void *p_data, size_t i_data )
     s->p_end   = s->p_start + i_data;
     s->i_left  = 8;
     s->b_read_only = false;
-    s->pf_forward = s->p_fwpriv = NULL;
+    s->p_fwpriv = NULL;
+    s->pf_forward = NULL;
 }
 
 static inline void bs_init( bs_t *s, const void *p_data, size_t i_data )
-- 
2.7.0



More information about the vlc-devel mailing list