aboutsummaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-04 23:42:15 +0100
committerGravatar Sadie Powell2021-04-04 23:42:15 +0100
commit7d84e4900fa8f4ef96e8cf4bb67b76be7902e840 (patch)
treef5a81d03f572392e7547d58f979fdd488de6ff0b /src/helperfuncs.cpp
parentRemove the unused ExitCodes array. (diff)
Fix a ton of pedantic compiler warnings.
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
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;
}