Fix some warnings

This commit is contained in:
negativeExponent
2020-10-25 08:31:41 +08:00
parent 2a317f27b3
commit 565f60c0f2
7 changed files with 15 additions and 18 deletions

View File

@@ -28,7 +28,7 @@
#define MAX_TOLERANCE 20
static uint32 targetExpansion[MAX_TOLERANCE+1];
#endif
static int tolerance;
static uint32 tolerance;
typedef struct {
uint32 mzx, mzy, mzb;
@@ -167,7 +167,7 @@ static uint32 InefficientSqrt(uint32 z) {
void FCEU_ZapperSetTolerance(int t)
{
#ifdef ROUNDED_TARGET
uint32_t y;
uint32 y;
tolerance = t <= MAX_TOLERANCE ? t : MAX_TOLERANCE;
for (y = 0; y <= tolerance; y++)
targetExpansion[y] = InefficientSqrt(tolerance*tolerance-y*y);