Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
JM
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jvet
JM
Commits
ece1ba64
Commit
ece1ba64
authored
1 year ago
by
Karsten Suehring
Browse files
Options
Downloads
Patches
Plain Diff
improve variable types for non-Windows timediff() function
parent
7fa1ee4e
No related branches found
Branches containing commit
Tags
JM-14.0
Tags containing commit
1 merge request
!6
Compile fixes for newer compilers
Pipeline
#9480
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/lib/lcommon/win32.c
+3
-3
3 additions, 3 deletions
source/lib/lcommon/win32.c
with
3 additions
and
3 deletions
source/lib/lcommon/win32.c
+
3
−
3
View file @
ece1ba64
...
...
@@ -64,15 +64,15 @@ void init_time(void)
int64
timediff
(
TIME_T
*
start
,
TIME_T
*
end
)
{
long
t1
,
t2
;
int64
t1
,
t2
;
t1
=
end
->
tv_sec
-
start
->
tv_sec
;
t2
=
end
->
tv_usec
-
start
->
tv_usec
;
return
(
int64
)
t2
+
(
int64
)
t1
*
(
int64
)
1000000
;
return
t2
+
t1
*
1000000
;
}
int64
timenorm
(
int64
cur_time
)
{
return
(
int64
)(
cur_time
/
(
int64
)
1000
)
;
return
cur_time
/
1000
;
}
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment