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
L
libdvdcss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libdvdcss
Commits
c500fe52
Commit
c500fe52
authored
Oct 16, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
device: Adjust types in offset calculations
This fixes all related warnings from MSVC.
parent
cba944bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/device.c
src/device.c
+6
-6
No files found.
src/device.c
View file @
c500fe52
...
...
@@ -540,17 +540,17 @@ static int libc_seek( dvdcss_t dvdcss, int i_blocks )
return
i_blocks
;
}
i_seek
=
(
off_t
)
i_blocks
*
(
off_t
)
DVDCSS_BLOCK_SIZE
;
i_seek
=
i_blocks
*
DVDCSS_BLOCK_SIZE
;
i_seek
=
lseek
(
dvdcss
->
i_fd
,
i_seek
,
SEEK_SET
);
if
(
i_seek
<
0
)
{
print_error
(
dvdcss
,
"seek error"
);
dvdcss
->
i_pos
=
-
1
;
return
i_seek
;
return
(
int
)
i_seek
;
}
dvdcss
->
i_pos
=
i_seek
/
DVDCSS_BLOCK_SIZE
;
dvdcss
->
i_pos
=
(
int
)
(
i_seek
/
DVDCSS_BLOCK_SIZE
)
;
return
dvdcss
->
i_pos
;
}
...
...
@@ -578,7 +578,7 @@ static int win2k_seek( dvdcss_t dvdcss, int i_blocks )
return
-
1
;
}
dvdcss
->
i_pos
=
li_seek
.
QuadPart
/
DVDCSS_BLOCK_SIZE
;
dvdcss
->
i_pos
=
(
int
)
(
li_seek
.
QuadPart
/
DVDCSS_BLOCK_SIZE
)
;
return
dvdcss
->
i_pos
;
}
...
...
@@ -589,9 +589,9 @@ static int win2k_seek( dvdcss_t dvdcss, int i_blocks )
*****************************************************************************/
static
int
libc_read
(
dvdcss_t
dvdcss
,
void
*
p_buffer
,
int
i_blocks
)
{
off
_t
i_size
,
i_ret
,
i_ret_blocks
;
ssize
_t
i_size
,
i_ret
,
i_ret_blocks
;
i_size
=
(
off_t
)
i_blocks
*
(
off_t
)
DVDCSS_BLOCK_SIZE
;
i_size
=
i_blocks
*
DVDCSS_BLOCK_SIZE
;
i_ret
=
read
(
dvdcss
->
i_fd
,
p_buffer
,
i_size
);
if
(
i_ret
<
0
)
...
...
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