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;