diff options
| author | ENikS <[email protected]> | 2014-09-02 17:36:45 -0400 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2014-09-25 15:24:36 +0200 |
| commit | 1e7350486582fafc651d07a43d209d30eaaef1d7 (patch) | |
| tree | 8d1107667889fb581280045b7da1c64618798246 /src | |
| parent | Merge pull request #4968 (diff) | |
| download | discoin-1e7350486582fafc651d07a43d209d30eaaef1d7.tar.xz discoin-1e7350486582fafc651d07a43d209d30eaaef1d7.zip | |
Fixing C4146 warning
Rebased-By: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/script/script.h | 2 | ||||
| -rw-r--r-- | src/util.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/script/script.h b/src/script/script.h index 4c9ac74b7..4aea439e0 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -304,7 +304,7 @@ private: // If the input vector's most significant byte is 0x80, remove it from // the result's msb and return a negative. if (vch.back() & 0x80) - return -(result & ~(0x80ULL << (8 * (vch.size() - 1)))); + return -((int64_t)(result & ~(0x80ULL << (8 * (vch.size() - 1))))); return result; } diff --git a/src/util.cpp b/src/util.cpp index f387fce8c..632d0965b 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -618,7 +618,7 @@ void ShrinkDebugFile() { // Restart the file with some of the end std::vector <char> vch(200000,0); - fseek(file, -vch.size(), SEEK_END); + fseek(file, -((long)vch.size()), SEEK_END); int nBytes = fread(begin_ptr(vch), 1, vch.size(), file); fclose(file); |