From 1eb1330ed4571c2748bf5cede78f95831d4825c6 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 15 May 2009 08:13:56 +0000 Subject: [PATCH] Fix compiler warning svn path=/trunk/boinc/; revision=18111 --- checkin_notes | 6 ++++++ lib/util.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 2d0601d55f..f446954482 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4543,3 +4543,9 @@ David 14 May 2009 translation.inc ops/ build_po.php + +Charlie 15 May 2009 + Fix compiler warning. + + lib/ + util.cpp diff --git a/lib/util.cpp b/lib/util.cpp index 8b31bd39e4..7772b3c15e 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -328,7 +328,7 @@ int read_file_malloc(const char* path, char*& buf, size_t max_len, bool tail) { size = max_len; } #endif - size_t isize = size; + size_t isize = (size_t)size; buf = (char*)malloc(isize+1); size_t n = fread(buf, 1, isize, f); buf[n] = 0;