summaryrefslogtreecommitdiff
path: root/libavutil/intreadwrite.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-17 12:47:06 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-17 12:47:06 +0000
commitc25210278c2919d756364e91a572f0ed4e648716 (patch)
tree89d6529392c3952664bfa1cd237b4ab242bf7482 /libavutil/intreadwrite.h
parent0209e1e16037abce9e682077fbb3ff8459db2953 (diff)
Add missing parens in AV_WN macros
Originally committed as revision 21260 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/intreadwrite.h')
-rw-r--r--libavutil/intreadwrite.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h
index 933732c365..78f83300bc 100644
--- a/libavutil/intreadwrite.h
+++ b/libavutil/intreadwrite.h
@@ -157,17 +157,17 @@ struct unaligned_32 { uint32_t l; } __attribute__((packed));
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