diff options
| author | 2021-04-04 23:42:15 +0100 | |
|---|---|---|
| committer | 2021-04-04 23:42:15 +0100 | |
| commit | 7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch) | |
| tree | f5a81d03f572392e7547d58f979fdd488de6ff0b /src/helperfuncs.cpp | |
| parent | Remove the unused ExitCodes array. (diff) | |
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/helperfuncs.cpp')
| -rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 9e3f1d4e1..607f44a28 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -501,7 +501,7 @@ std::string InspIRCd::GenRandomStr(unsigned int length, bool printable) unsigned long InspIRCd::GenRandomInt(unsigned long max) { unsigned long rv; - GenRandom((char*)&rv, sizeof(rv)); + GenRandom(reinterpret_cast<char*>(&rv), sizeof(rv)); return rv % max; } |
