aboutsummaryrefslogtreecommitdiff
path: root/libvpx/vp9/common/vp9_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvpx/vp9/common/vp9_common.h')
-rw-r--r--libvpx/vp9/common/vp9_common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvpx/vp9/common/vp9_common.h b/libvpx/vp9/common/vp9_common.h
index e3c5535dd..3cec53bfd 100644
--- a/libvpx/vp9/common/vp9_common.h
+++ b/libvpx/vp9/common/vp9_common.h
@@ -27,10 +27,10 @@ extern "C" {
// Only need this for fixed-size arrays, for structs just assign.
#define vp9_copy(dest, src) \
- { \
+ do { \
assert(sizeof(dest) == sizeof(src)); \
memcpy(dest, src, sizeof(src)); \
- }
+ } while (0)
// Use this for variably-sized arrays.
#define vp9_copy_array(dest, src, n) \