ref: 540997afba223a1b9368cbdc3e4e0ff1003d1e37
parent: 0ef72720d0c54be9faa8287652eeab7b4cd5b7fb
author: James Zern <jzern@google.com>
date: Fri Feb 22 06:29:47 EST 2013
sixtap_predict_test: fix sizes passed to memset src_/dst_/dst_c_ are heap allocated, use the allocation size rather than sizeof(var) Change-Id: I3335ad487dc9b154cdf212891d1d74c812eff060
--- a/test/sixtap_predict_test.cc
+++ b/test/sixtap_predict_test.cc
@@ -61,9 +61,9 @@
width_ = GET_PARAM(0);
height_ = GET_PARAM(1);
sixtap_predict_ = GET_PARAM(2);
- memset(src_, 0, sizeof(src_));
- memset(dst_, 0, sizeof(dst_));
- memset(dst_c_, 0, sizeof(dst_c_));
+ memset(src_, 0, kSrcSize);
+ memset(dst_, 0, kDstSize);
+ memset(dst_c_, 0, kDstSize);
}
int width_;
--
⑨