mirror of
https://github.com/love2d/love.git
synced 2026-08-21 13:09:56 +02:00
Fixed warning in Timer.cpp/MSVC. Enabled unicode character set in MSVC release builds.
This commit is contained in:
@@ -94,7 +94,7 @@
|
||||
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="2"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
<Tool
|
||||
|
||||
@@ -109,7 +109,7 @@ namespace sdl
|
||||
QueryPerformanceFrequency(&temp);
|
||||
freq = temp.QuadPart;
|
||||
__int64 secs = ticks/freq;
|
||||
__int64 usecs = (ticks%freq)/(freq/1000000.0f);
|
||||
__int64 usecs = static_cast<__int64>((ticks%freq)/(freq/1000000.0f));
|
||||
return secs%86400 + usecs/1000000.0f;
|
||||
#else
|
||||
timeval t;
|
||||
|
||||
Reference in New Issue
Block a user