tests: fix a few msvc warnings

Change-Id: I7ee89d6fc2afc20563d1784598ce83e29c0e6651
This commit is contained in:
James Zern
2013-12-18 17:00:40 -08:00
parent 99d39e5b99
commit 77e64d8c13
4 changed files with 4 additions and 4 deletions

View File

@@ -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];
}