|
From: <man...@us...> - 2013-07-01 11:36:52
|
Revision: 2460
http://sourceforge.net/p/modplug/code/2460
Author: manxorist
Date: 2013-07-01 11:36:41 +0000 (Mon, 01 Jul 2013)
Log Message:
-----------
[Ref] Silence 2 signed/unsigned comparison warnings.
Modified Paths:
--------------
trunk/OpenMPT/soundlib/Load_ams.cpp
trunk/OpenMPT/soundlib/Load_ptm.cpp
Modified: trunk/OpenMPT/soundlib/Load_ams.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Load_ams.cpp 2013-07-01 11:14:47 UTC (rev 2459)
+++ trunk/OpenMPT/soundlib/Load_ams.cpp 2013-07-01 11:36:41 UTC (rev 2460)
@@ -184,7 +184,7 @@
}
break;
}
- } else if(effect - 0x10 < CountOf(effTrans))
+ } else if(effect - 0x10 < (int)CountOf(effTrans))
{
// Extended commands
m.command = effTrans[effect - 0x10];
Modified: trunk/OpenMPT/soundlib/Load_ptm.cpp
===================================================================
--- trunk/OpenMPT/soundlib/Load_ptm.cpp 2013-07-01 11:14:47 UTC (rev 2459)
+++ trunk/OpenMPT/soundlib/Load_ptm.cpp 2013-07-01 11:36:41 UTC (rev 2460)
@@ -42,7 +42,7 @@
SwapBytesLE(numSamples);
SwapBytesLE(numPatterns);
SwapBytesLE(numChannels);
- for(int i = 0; i < CountOf(patOffsets); i++)
+ for(std::size_t i = 0; i < CountOf(patOffsets); i++)
{
SwapBytesLE(patOffsets[i]);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|