[FFmpeg-cvslog] r21260 - trunk/libavutil/intreadwrite.h
mru
subversion
Sun Jan 17 13:47:06 CET 2010
Author: mru
Date: Sun Jan 17 13:47:06 2010
New Revision: 21260
Log:
Add missing parens in AV_WN macros
Modified:
trunk/libavutil/intreadwrite.h
Modified: trunk/libavutil/intreadwrite.h
==============================================================================
--- trunk/libavutil/intreadwrite.h Sun Jan 17 09:24:45 2010 (r21259)
+++ trunk/libavutil/intreadwrite.h Sun Jan 17 13:47:06 2010 (r21260)
@@ -157,17 +157,17 @@ struct unaligned_32 { uint32_t l; } __at
struct unaligned_16 { uint16_t l; } __attribute__((packed));
# define AV_RN(s, p) (((const struct unaligned_##s *) (p))->l)
-# define AV_WN(s, p, v) (((struct unaligned_##s *) (p))->l) = (v)
+# define AV_WN(s, p, v) ((((struct unaligned_##s *) (p))->l) = (v))
#elif defined(__DECC)
# define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p)))
-# define AV_WN(s, p, v) *((__unaligned uint##s##_t*)(p)) = (v)
+# define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v))
#elif HAVE_FAST_UNALIGNED
# define AV_RN(s, p) (*((const uint##s##_t*)(p)))
-# define AV_WN(s, p, v) *((uint##s##_t*)(p)) = (v)
+# define AV_WN(s, p, v) (*((uint##s##_t*)(p)) = (v))
#else
More information about the ffmpeg-cvslog
mailing list