commit | 3373f0e93b2c773d102830fe907fca8de5464615 | [log] [tgz] |
---|---|---|
author | James Zern <jzern@google.com> | Sun May 17 11:21:22 2015 -0700 |
committer | James Zern <jzern@google.com> | Sun May 17 11:21:22 2015 -0700 |
tree | 169fd3bad482e639e7f80cd7b94ea40343ae59ee | |
parent | 8089f1cf1355953210c3cd0584bcc64a4eed6dd6 [diff] [blame] |
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
diff --git a/test/md5_helper.h b/test/md5_helper.h index 95f0921..742cf0b7 100644 --- 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) {