From 58059819792b948f008119cb7fdb64d26c964e66 Mon Sep 17 00:00:00 2001 From: svost Date: Wed, 22 Apr 2015 16:32:19 +0300 Subject: [PATCH] Fix MSVC C4146 warning. --- src/util.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/util.cpp b/src/util.cpp index 8cc62eb..f4d229e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1271,7 +1271,7 @@ void ShrinkDebugFile() { // Restart the file with some of the end char pch[200000]; - fseek(file, (long long)-sizeof(pch), SEEK_END); + fseek(file, -((long long)sizeof(pch)), SEEK_END); int nBytes = fread(pch, 1, sizeof(pch), file); fclose(file); -- 1.7.1