mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 10:37:01 +00:00
[9381] Fixed some compile warnings.
This commit is contained in:
parent
2bdcb1161c
commit
ccfd42bf3e
55 changed files with 219 additions and 203 deletions
|
|
@ -30,7 +30,7 @@ Tokens StrSplit(const std::string &src, const std::string &sep);
|
|||
|
||||
void stripLineInvisibleChars(std::string &src);
|
||||
|
||||
std::string secsToTimeString(uint32 timeInSecs, bool shortText = false, bool hoursOnly = false);
|
||||
std::string secsToTimeString(time_t timeInSecs, bool shortText = false, bool hoursOnly = false);
|
||||
uint32 TimeStringToSecs(const std::string& timestring);
|
||||
std::string TimeToTimestampStr(time_t t);
|
||||
|
||||
|
|
@ -55,6 +55,8 @@ MANGOS_DLL_SPEC int32 rand32();
|
|||
* With an FPU, there is usually no difference in performance between float and double. */
|
||||
MANGOS_DLL_SPEC double rand_norm(void);
|
||||
|
||||
MANGOS_DLL_SPEC float rand_norm_f(void);
|
||||
|
||||
/* Return a random double from 0.0 to 99.9999999999999. Floats support only 7 valid decimal digits.
|
||||
* A double supports up to 15 valid decimal digits and is used internaly (RAND32_MAX has 10 digits).
|
||||
* With an FPU, there is usually no difference in performance between float and double. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue