summaryrefslogtreecommitdiff
path: root/test/vp8_boolcoder_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/vp8_boolcoder_test.cc')
-rw-r--r--test/vp8_boolcoder_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/vp8_boolcoder_test.cc b/test/vp8_boolcoder_test.cc
index fa7ee6e8c..7c6c60148 100644
--- a/test/vp8_boolcoder_test.cc
+++ b/test/vp8_boolcoder_test.cc
@@ -43,7 +43,7 @@ void encrypt_buffer(uint8_t *buffer, int size) {
void test_decrypt_cb(void *decrypt_state, const uint8_t *input,
uint8_t *output, int count) {
- int offset = input - reinterpret_cast<uint8_t *>(decrypt_state);
+ const size_t offset = input - reinterpret_cast<uint8_t*>(decrypt_state);
for (int i = 0; i < count; i++) {
output[i] = input[i] ^ secret_key[(offset + i) & 15];
}