From 37fde51fb1d1e370711bcb3997c4e68e2f844768 Mon Sep 17 00:00:00 2001 From: David Rose Date: Fri, 11 Sep 2009 23:18:00 +0000 Subject: [PATCH] win32 warning --- direct/src/plugin/p3dMainObject.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direct/src/plugin/p3dMainObject.cxx b/direct/src/plugin/p3dMainObject.cxx index edc39a4401..0c52a3bc00 100644 --- a/direct/src/plugin/p3dMainObject.cxx +++ b/direct/src/plugin/p3dMainObject.cxx @@ -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;