[vlc-devel] commit: Fix assertion ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 17 14:31:29 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Jan 17 15:31:23 2009 +0200| [851643ca61002759336ba933d75af909a8edae2e] | committer: Rémi Denis-Courmont 

Fix assertion

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=851643ca61002759336ba933d75af909a8edae2e
---

 src/libvlc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index 51d555c..2f07f4e 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -146,7 +146,7 @@ void *vlc_hold (gc_object_t * p_gc)
 {
     uintptr_t refs;
     assert( p_gc );
-    assert ((((uintptr_t)&refs) & (sizeof (void *) - 1)) == 0); /* alignment */
+    assert ((((uintptr_t)&p_gc->refs) & (sizeof (void *) - 1)) == 0); /* alignment */
 
 #if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
     refs = __sync_add_and_fetch (&p_gc->refs, 1);
@@ -174,7 +174,7 @@ void vlc_release (gc_object_t *p_gc)
     unsigned refs;
 
     assert( p_gc );
-    assert ((((uintptr_t)&refs) & (sizeof (void *) - 1)) == 0); /* alignment */
+    assert ((((uintptr_t)&p_gc->refs) & (sizeof (void *) - 1)) == 0); /* alignment */
 
 #if defined (__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
     refs = __sync_sub_and_fetch (&p_gc->refs, 1);




More information about the vlc-devel mailing list