ref: 3373f0e93b2c773d102830fe907fca8de5464615
parent: 8089f1cf1355953210c3cd0584bcc64a4eed6dd6
author: James Zern <[email protected]>
date: Sun May 17 07:21:22 EDT 2015
md5_helper.h: fix type conversion warning add a cast in Add() from size_t -> uint32; quiets a visual studio build warning Change-Id: I0d87a3e460faf1fe2d4fb44df5f4042ef7500190
--- a/test/md5_helper.h
+++ b/test/md5_helper.h
@@ -43,7 +43,7 @@
}
void Add(const uint8_t *data, size_t size) {
- MD5Update(&md5_, data, size);
+ MD5Update(&md5_, data, static_cast<uint32_t>(size));
}
const char *Get(void) {