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
7d1fc057418fe859028b1c54cff661a6a78241f9...489c0c3c20b98f74f54046d050686db182dc6973
Commits (1)
Borland doesn't have roundl() so do terrible things instead.
· 489c0c3c
Deucе
authored
Feb 12, 2022
489c0c3c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
src/xpdev/genwrap.c
src/xpdev/genwrap.c
+2
-7
No files found.
src/xpdev/genwrap.c
View file @
489c0c3c
...
...
@@ -695,14 +695,9 @@ char* os_cmdshell(void)
/********************************************************/
clock_t
msclock
(
void
)
{
long
double
t
=
roundl
(
xp_timer
()
*
1000
);
uint64_t
=
(
uint64_t
)
(
xp_timer
()
*
1000
);
if
(
sizeof
(
clock_t
)
<
8
)
{
while
(
t
>
INT32_MAX
)
t
-=
UINT32_MAX
;
}
return
(
clock_t
)
t
;
return
(
clock_t
)(
t
&
0xffffffff
);
}
/****************************************************************************/
...
...