mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-24 06:06:23 +00:00
Core/Misc: update g3dlite lib (#2904)
* Core/Misc: update g3dlite lib * update Co-authored-by: Francesco Borzì <borzifrancesco@gmail.com>
This commit is contained in:
5
deps/g3dlite/source/Crypto.cpp
vendored
5
deps/g3dlite/source/Crypto.cpp
vendored
@@ -11,7 +11,7 @@
|
||||
#include "G3D/platform.h"
|
||||
#include "G3D/Crypto.h"
|
||||
#include "G3D/g3dmath.h"
|
||||
#include <zlib.h>
|
||||
#include "zlib.h"
|
||||
|
||||
namespace G3D {
|
||||
|
||||
@@ -64,7 +64,8 @@ int Crypto::numSmallPrimes() {
|
||||
}
|
||||
|
||||
uint32 Crypto::crc32(const void* byte, size_t numBytes) {
|
||||
return ::crc32(::crc32(0, Z_NULL, 0), static_cast<const Bytef *>(byte), numBytes);
|
||||
alwaysAssertM(numBytes < 0xFFFFFFFF, "Not implemented for arrays larger than 2^32 bytes");
|
||||
return ::crc32(::crc32(0, Z_NULL, 0), static_cast<const Bytef *>(byte), (int)numBytes);
|
||||
}
|
||||
|
||||
} // G3D
|
||||
|
||||
Reference in New Issue
Block a user