aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mednafen/gcc6-fix.patch
blob: ada47196dec267f7073756de0a0ca5a8ee5bfa48 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ./src/cdrom/CDAccess_CCD.cpp.orig
+++ ./src/cdrom/CDAccess_CCD.cpp
@@ -346,7 +346,7 @@
      if(prev_lba != INT_MAX && abs(lba - prev_lba) > 100)
       throw MDFN_Error(0, _("Garbage subchannel Q data detected(excessively large jump in AMSF)"));
 
-     if(abs(lba - s) > 100)
+     if(abs((int)(lba - s)) > 100)
       throw MDFN_Error(0, _("Garbage subchannel Q data detected(AMSF value is out of tolerance)"));
 
      prev_lba = lba;