cdvdGigaherz: Clean up warnings on MSVC

SectorConverters: convert variables to u8.
This commit is contained in:
Akash 2016-06-30 16:35:10 +05:30
parent 1bcb5e0cc1
commit d69f2b6cc5
1 changed files with 5 additions and 5 deletions

View File

@ -42,11 +42,11 @@ int Convert<2352,2048>(char *dest, const char* psrc, int lsn)
template<>
int Convert<2048,2352>(char *dest, const char* psrc, int lsn)
{
int m = lsn / (75*60);
int s = (lsn/75) % 60;
int f = lsn%75;
unsigned char header[16] = {
0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00, m, s, f,0x02
u8 m = lsn / (75*60);
u8 s = (lsn/75) % 60;
u8 f = lsn%75;
u8 header[16] = {
0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,m,s,f,0x02
};
memcpy(dest,header,16);