Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLCKit
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
61
Issues
61
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLCKit
Commits
17a6eab2
Commit
17a6eab2
authored
Jul 25, 2012
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VLCTime: fixed long standing compilation warnings
parent
758b4548
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
Sources/VLCTime.m
Sources/VLCTime.m
+6
-6
No files found.
Sources/VLCTime.m
View file @
17a6eab2
...
...
@@ -99,13 +99,13 @@
long
long
duration
=
[
value
longLongValue
]
/
1000
;
long
long
positiveDuration
=
llabs
(
duration
);
if
(
positiveDuration
>
3600
)
return
[
NSString
stringWithFormat
:
@"%s%01
d:%02d:%02
d"
,
return
[
NSString
stringWithFormat
:
@"%s%01
ld:%02ld:%02l
d"
,
duration
<
0
?
"-"
:
""
,
(
long
)
(
positiveDuration
/
3600
),
(
long
)((
positiveDuration
/
60
)
%
60
),
(
long
)
(
positiveDuration
%
60
)];
else
return
[
NSString
stringWithFormat
:
@"%s%02
d:%02
d"
,
return
[
NSString
stringWithFormat
:
@"%s%02
ld:%02l
d"
,
duration
<
0
?
"-"
:
""
,
(
long
)((
positiveDuration
/
60
)
%
60
),
(
long
)
(
positiveDuration
%
60
)];
...
...
@@ -128,13 +128,13 @@
long
seconds
=
positiveDuration
%
60
;
const
char
*
remaining
=
duration
<
0
?
" remaining"
:
""
;
if
(
hours
>
0
)
return
[
NSString
stringWithFormat
:
@"%
d hours %
d minutes%s"
,
hours
,
mins
,
remaining
];
return
[
NSString
stringWithFormat
:
@"%
ld hours %l
d minutes%s"
,
hours
,
mins
,
remaining
];
else
if
(
mins
>
5
)
return
[
NSString
stringWithFormat
:
@"%d minutes%s"
,
mins
,
remaining
];
return
[
NSString
stringWithFormat
:
@"%
l
d minutes%s"
,
mins
,
remaining
];
else
if
(
mins
>
0
)
return
[
NSString
stringWithFormat
:
@"%
d minutes %
d seconds%s"
,
mins
,
seconds
,
remaining
];
return
[
NSString
stringWithFormat
:
@"%
ld minutes %l
d seconds%s"
,
mins
,
seconds
,
remaining
];
else
return
[
NSString
stringWithFormat
:
@"%d seconds%s"
,
seconds
,
remaining
];
return
[
NSString
stringWithFormat
:
@"%
l
d seconds%s"
,
seconds
,
remaining
];
}
else
{
...
...
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