- fixed compilation warnings reported by MSVC
src\common\audio\sound\s_sound.cpp(556,27): warning C4244: '=': conversion from 'double' to 'float', possible loss of data src\scripting\vmthunks.cpp(2678,13): warning C4244: 'return': conversion from 'time_t' to 'int', possible loss of data
This commit is contained in:
parent
60886f389c
commit
254489e34c
2 changed files with 3 additions and 3 deletions
|
|
@ -2675,7 +2675,7 @@ static int GetEpochTime()
|
|||
{
|
||||
time_t now;
|
||||
time(&now);
|
||||
return now != (time_t)(-1) ? now + epochoffset : (time_t)(-1);
|
||||
return now != (time_t)(-1) ? int(now + epochoffset) : -1;
|
||||
}
|
||||
|
||||
//Returns an empty string if the Strf tokens are valid, otherwise returns the problematic token
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue