mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 06:41:20 +00:00
mute some MSVC warnings
(since I don't understand what's up in that code this is the least intrusive way...)
This commit is contained in:
parent
835b94c4d4
commit
c9104a596f
14
src/sha1.cpp
14
src/sha1.cpp
@ -71,9 +71,16 @@ sha1_hash::sha1_hash(const std::string& str)
|
||||
if (bytes_left < 60) { // enough space to store the length
|
||||
// put the length at the end of the block
|
||||
block[60] = ssz >> 24;
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable: 4244)
|
||||
#endif
|
||||
block[61] = ssz >> 16;
|
||||
block[62] = ssz >> 8;
|
||||
block[63] = ssz;
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
} else { // not enough space for the zeros => we need a new block
|
||||
next(block);
|
||||
// new block
|
||||
@ -85,9 +92,16 @@ sha1_hash::sha1_hash(const std::string& str)
|
||||
}
|
||||
// put the length at the end of the block
|
||||
block[60] = ssz >> 24;
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (push)
|
||||
#pragma warning (disable: 4244)
|
||||
#endif
|
||||
block[61] = ssz >> 16;
|
||||
block[62] = ssz >> 8;
|
||||
block[63] = ssz;
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning (pop)
|
||||
#endif
|
||||
}
|
||||
}
|
||||
next(block);
|
||||
|
Loading…
x
Reference in New Issue
Block a user