Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
c3c6d783f4da67a9b2a1f1ed11260ced8f0cefde...f0a83672aa0c8d0d638bfd623daeffa91da40784
Commits (1)
Resolve new msvc warning
· f0a83672
Rob Swindell
authored
Feb 12, 2022
warning C4244: '=': conversion from 'double' to 'uint64_t', possible loss of data
f0a83672
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/xpdev/genwrap.c
src/xpdev/genwrap.c
+1
-1
No files found.
src/xpdev/genwrap.c
View file @
f0a83672
...
@@ -855,7 +855,7 @@ uint64_t xp_timer64(void)
...
@@ -855,7 +855,7 @@ uint64_t xp_timer64(void)
if
(
intable
)
if
(
intable
)
ret
=
tick
.
QuadPart
/
(
freq
.
QuadPart
/
1000
);
ret
=
tick
.
QuadPart
/
(
freq
.
QuadPart
/
1000
);
else
else
ret
=
((
double
)
tick
.
QuadPart
)
/
(((
double
)
freq
.
QuadPart
)
/
1000
);
ret
=
(
uint64_t
)(
((
double
)
tick
.
QuadPart
)
/
(((
double
)
freq
.
QuadPart
)
/
1000
)
)
;
}
}
else
{
else
{
ret
=
GetTickCount
();
ret
=
GetTickCount
();
...
...