win32 warning

This commit is contained in:
David Rose 2009-09-11 23:18:00 +00:00
parent b52dfe14dd
commit 37fde51fb1

View File

@ -375,7 +375,7 @@ read_log(const string &log_pathname, P3D_object *params[], int num_params) {
log.seekg(0, ios::end);
size_t size = (size_t)log.tellg();
if (max_bytes > 0 && max_bytes < size) {
if (max_bytes > 0 && max_bytes < (int)size) {
// Apply the limit.
log.seekg(size - max_bytes, ios::beg);
size = (size_t)max_bytes;