From 21b5545bded2c13006550977e6b8da0142afc4f0 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sat, 21 Jan 2017 23:31:49 +0100 Subject: [PATCH] Fix warnings --- decblupi.cpp | 2 +- sound.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decblupi.cpp b/decblupi.cpp index 5e6b6c5..0aecf2b 100644 --- a/decblupi.cpp +++ b/decblupi.cpp @@ -4151,7 +4151,7 @@ BOOL CDecor::BlupiGoal(int rank, int button, POINT cel, POINT cMem) test = goalHili2; if ( IsBuildPont(test, icon) != 0 ) return FALSE; - m_blupi[rank].nLoop = abs((test.x-cel.x)+(test.y-cel.y))/2; + m_blupi[rank].nLoop = static_cast (abs((test.x-cel.x)+(test.y-cel.y))/2); m_blupi[rank].cLoop = 0; m_blupi[rank].vIcon = icon; m_blupi[rank].fix = cel; diff --git a/sound.cpp b/sound.cpp index 29ac972..09b4a4b 100644 --- a/sound.cpp +++ b/sound.cpp @@ -225,7 +225,7 @@ void InitMidiVolume(int volume) MMRESULT result; HMIDIOUT hmo = 0; - static int table[21] = + static unsigned int table[21] = { 0x00000000, 0x11111111,