From d69f2b6cc5d682727b190fb909277905d98c1396 Mon Sep 17 00:00:00 2001 From: Akash Date: Thu, 30 Jun 2016 16:35:10 +0530 Subject: [PATCH] cdvdGigaherz: Clean up warnings on MSVC SectorConverters: convert variables to u8. --- plugins/cdvdGigaherz/src/SectorConverters.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/cdvdGigaherz/src/SectorConverters.h b/plugins/cdvdGigaherz/src/SectorConverters.h index a28406b2a1..eb9a998bb1 100644 --- a/plugins/cdvdGigaherz/src/SectorConverters.h +++ b/plugins/cdvdGigaherz/src/SectorConverters.h @@ -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);