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
Commits
489c0c3c
Commit
489c0c3c
authored
Feb 12, 2022
by
Deucе
👌🏾
Browse files
Borland doesn't have roundl() so do terrible things instead.
parent
7d1fc057
Pipeline
#2724
failed with stage
in 4 minutes and 47 seconds
Changes
1
Pipelines
1
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
);
}
/****************************************************************************/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment