mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
JANITORIAL: Fix MSVC warnings
- Conversion from double to float - Unary minus operator applied to unsigned type - ARRAYSIZE redefinition
This commit is contained in:
parent
9ad45e28a1
commit
da60ff3ded
@ -23,11 +23,6 @@
|
||||
// Disable symbol overrides so that we can use system headers.
|
||||
#define FORBIDDEN_SYMBOL_ALLOW_ALL
|
||||
|
||||
#include "common/scummsys.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/error.h"
|
||||
#include "common/textconsole.h"
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
@ -35,6 +30,11 @@
|
||||
#undef ARRAYSIZE // winnt.h defines ARRAYSIZE, but we want our own one...
|
||||
#include <shellapi.h>
|
||||
|
||||
#include "common/scummsys.h"
|
||||
#include "common/config-manager.h"
|
||||
#include "common/error.h"
|
||||
#include "common/textconsole.h"
|
||||
|
||||
#include <SDL_syswm.h> // For setting the icon
|
||||
|
||||
#include "backends/platform/sdl/win32/win32.h"
|
||||
|
16382
common/cosinetables.cpp
16382
common/cosinetables.cpp
File diff suppressed because it is too large
Load Diff
16382
common/sinetables.cpp
16382
common/sinetables.cpp
File diff suppressed because it is too large
Load Diff
@ -1043,7 +1043,7 @@ void BinkDecoder::readMotionValues(VideoFrame &video, Bundle &bundle) {
|
||||
byte v = video.bits->getBits(4);
|
||||
|
||||
if (v) {
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
v = (v ^ sign) - sign;
|
||||
}
|
||||
|
||||
@ -1057,7 +1057,7 @@ void BinkDecoder::readMotionValues(VideoFrame &video, Bundle &bundle) {
|
||||
byte v = getHuffmanSymbol(video, bundle.huffman);
|
||||
|
||||
if (v) {
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
v = (v ^ sign) - sign;
|
||||
}
|
||||
|
||||
@ -1175,7 +1175,7 @@ void BinkDecoder::readDCS(VideoFrame &video, Bundle &bundle, int startBits, bool
|
||||
|
||||
int32 v = video.bits->getBits(startBits - (hasSign ? 1 : 0));
|
||||
if (v && hasSign) {
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
v = (v ^ sign) - sign;
|
||||
}
|
||||
|
||||
@ -1192,7 +1192,7 @@ void BinkDecoder::readDCS(VideoFrame &video, Bundle &bundle, int startBits, bool
|
||||
for (uint32 j = 0; j < length2; j++) {
|
||||
int16 v2 = video.bits->getBits(bSize);
|
||||
if (v2) {
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
v2 = (v2 ^ sign) - sign;
|
||||
}
|
||||
|
||||
@ -1261,7 +1261,7 @@ void BinkDecoder::readDCTCoeffs(VideoFrame &video, int16 *block, bool isIntra) {
|
||||
} else {
|
||||
t = video.bits->getBits(bits) | mask;
|
||||
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
t = (t ^ sign) - sign;
|
||||
}
|
||||
block[binkScan[ccoef]] = t;
|
||||
@ -1286,7 +1286,7 @@ void BinkDecoder::readDCTCoeffs(VideoFrame &video, int16 *block, bool isIntra) {
|
||||
} else {
|
||||
t = video.bits->getBits(bits) | mask;
|
||||
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
t = (t ^ sign) - sign;
|
||||
}
|
||||
block[binkScan[ccoef]] = t;
|
||||
@ -1365,7 +1365,7 @@ void BinkDecoder::readResidue(VideoFrame &video, int16 *block, int masksCount) {
|
||||
} else {
|
||||
nzCoeff[nzCoeffCount++] = binkScan[ccoef];
|
||||
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
block[binkScan[ccoef]] = (mask ^ sign) - sign;
|
||||
|
||||
masksCount--;
|
||||
@ -1387,7 +1387,7 @@ void BinkDecoder::readResidue(VideoFrame &video, int16 *block, int masksCount) {
|
||||
case 3:
|
||||
nzCoeff[nzCoeffCount++] = binkScan[ccoef];
|
||||
|
||||
int sign = -video.bits->getBit();
|
||||
int sign = -(int)video.bits->getBit();
|
||||
block[binkScan[ccoef]] = (mask ^ sign) - sign;
|
||||
|
||||
coefList[listPos] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user