Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
multicat
Commits
ef6fd5fa
Commit
ef6fd5fa
authored
Mar 06, 2013
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix overflow in date calculation on 32 bit platforms.
parent
ade0d273
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
util.c
util.c
+1
-1
No files found.
util.c
View file @
ef6fd5fa
...
...
@@ -155,7 +155,7 @@ static uint64_t _wall_Date( bool b_realtime )
(
void
)
clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
return
((
uint64_t
)
ts
.
tv_sec
*
(
uint64_t
)
27000000
)
+
(
uint64_t
)
(
ts
.
tv_nsec
*
27
/
1000
);
+
(
(
uint64_t
)
ts
.
tv_nsec
*
27
/
1000
);
#else
struct
timeval
tv_date
;
...
...
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