[vlc-commits] vlc_bits: fix a bad cast when included from C++
Steve Lhomme
git at videolan.org
Wed Jan 20 09:39:50 CET 2016
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Jan 19 13:41:01 2016 +0100| [98b2285f20819515858133cfdcd47abdad79b07a] | committer: Jean-Baptiste Kempf
vlc_bits: fix a bad cast when included from C++
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98b2285f20819515858133cfdcd47abdad79b07a
---
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 )
More information about the vlc-commits
mailing list