From 3373f0e93b2c773d102830fe907fca8de5464615 Mon Sep 17 00:00:00 2001 From: James Zern Date: Sun, 17 May 2015 11:21:22 -0700 Subject: [PATCH] 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 --- test/md5_helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/md5_helper.h b/test/md5_helper.h index 95f092127..742cf0b7b 100644 --- a/test/md5_helper.h +++ b/test/md5_helper.h @@ -43,7 +43,7 @@ class MD5 { } void Add(const uint8_t *data, size_t size) { - MD5Update(&md5_, data, size); + MD5Update(&md5_, data, static_cast(size)); } const char *Get(void) {