Fix a type comparison warning.

This commit is contained in:
Unknown W. Brackets 2015-12-23 15:22:13 -08:00
parent d5219ebafc
commit 103b959d50
2 changed files with 2 additions and 2 deletions

View File

@ -2723,7 +2723,7 @@ void ARMXEmitter::VSHL(u32 Size, ARMReg Vd, ARMReg Vm, int shiftAmount) {
}
void ARMXEmitter::VSHLL(u32 Size, ARMReg Vd, ARMReg Vm, int shiftAmount) {
if (shiftAmount == (8 * (Size & 0xF))) {
if ((u32)shiftAmount == (8 * (Size & 0xF))) {
// Entirely different encoding (A2) for size == shift! Bleh.
int sz = 0;
switch (Size & 0xF) {

View File

@ -193,7 +193,7 @@ struct Atrac {
if (loopEndSample <= 0) {
// There's no looping, but we need to stream the data in our buffer.
bufferState = ATRAC_STATUS_STREAMED_WITHOUT_LOOP;
} else if (loopEndSample == endSample + firstSampleoffset + firstOffsetExtra()) {
} else if (loopEndSample == endSample + firstSampleoffset + (int)firstOffsetExtra()) {
bufferState = ATRAC_STATUS_STREAMED_LOOP_FROM_END;
} else {
bufferState = ATRAC_STATUS_STREAMED_LOOP_WITH_TRAILER;