]> git.sesse.net Git - vlc/commitdiff
* Fixed my fix for the fix for vlc_memalign. Sorry O:-)
authorJon Lech Johansen <jlj@videolan.org>
Fri, 26 Apr 2002 18:12:28 +0000 (18:12 +0000)
committerJon Lech Johansen <jlj@videolan.org>
Fri, 26 Apr 2002 18:12:28 +0000 (18:12 +0000)
include/common.h

index 338d8e8d9130e7592e5c8ffb2f1ee4778c62bc73..ba05642817b4d926b0439c0868bb91b0fee6a703 100644 (file)
@@ -3,7 +3,7 @@
  * Collection of useful common types and macros definitions
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: common.h,v 1.100 2002/04/26 17:07:14 jlj Exp $
+ * $Id: common.h,v 1.101 2002/04/26 18:12:28 jlj Exp $
  *
  * Authors: Samuel Hocevar <sam@via.ecp.fr>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -385,7 +385,7 @@ struct intf_subscription_s;
 #   define vlc_memalign(pp_orig,align,size) \
     (( *(pp_orig) = malloc( size + align - 1 )) \
         ? (void *)( (((unsigned long)*(pp_orig)) + (unsigned long)(align-1) ) \
-                       & (~(unsigned long)align) ) \
+                       & (~(unsigned long)(align-1)) ) \
         : NULL )
 
 #endif