mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
win32 warning
This commit is contained in:
parent
b52dfe14dd
commit
37fde51fb1
@ -375,7 +375,7 @@ read_log(const string &log_pathname, P3D_object *params[], int num_params) {
|
|||||||
log.seekg(0, ios::end);
|
log.seekg(0, ios::end);
|
||||||
size_t size = (size_t)log.tellg();
|
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.
|
// Apply the limit.
|
||||||
log.seekg(size - max_bytes, ios::beg);
|
log.seekg(size - max_bytes, ios::beg);
|
||||||
size = (size_t)max_bytes;
|
size = (size_t)max_bytes;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user