mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Dep/SFMT: Add diff fordd55e41c8158fe1f60e120b0b89469d4112158d2
This commit is contained in:
14
dep/SFMT/SFMT-hotfix1.diff
Normal file
14
dep/SFMT/SFMT-hotfix1.diff
Normal file
@@ -0,0 +1,14 @@
|
||||
diff --git a/dep/SFMT/SFMT.h b/dep/SFMT/SFMT.h
|
||||
index 3d15d65..ccf21ce 100644
|
||||
--- a/dep/SFMT/SFMT.h
|
||||
+++ b/dep/SFMT/SFMT.h
|
||||
@@ -173,7 +173,8 @@ public:
|
||||
uint32_t statesize = SFMT_N*4; // Size of state vector
|
||||
|
||||
// Fill state vector with random numbers from seed
|
||||
- ((uint32_t*)state)[0] = y;
|
||||
+ uint32_t* s = (uint32_t*)&state;
|
||||
+ s[0] = y;
|
||||
const uint32_t factor = 1812433253U;// Multiplication factor
|
||||
|
||||
for (i = 1; i < statesize; i++) {
|
||||
Reference in New Issue
Block a user