diff --git a/Core/HLE/AtracCtx2.cpp b/Core/HLE/AtracCtx2.cpp index b2fc724fbb..de68b8a371 100644 --- a/Core/HLE/AtracCtx2.cpp +++ b/Core/HLE/AtracCtx2.cpp @@ -221,7 +221,7 @@ int InitContextFromTrackInfo(SceAtracContext *ctx, const TrackInfo *wave, u32 bu return SCE_ERROR_ATRAC_BAD_CODEC_PARAMS; } - const int numChunks = (endSample >> (0x100b - (ctx->info).codec & 0x1f)); + const int numChunks = (endSample >> ((0x100b - (ctx->info).codec) & 0x1f)); if ((numChunks * (u32)(ctx->info).sampleSize < (wave->waveDataSize + dataOff) - dataOff)) { int retval = ComputeAtracStateAndInitSecondBuffer(&ctx->info, readSize, bufferSize); diff --git a/Core/SaveState.cpp b/Core/SaveState.cpp index ae65c58816..3fa47a1c87 100644 --- a/Core/SaveState.cpp +++ b/Core/SaveState.cpp @@ -948,7 +948,7 @@ enum class OperationType { break; } default: - ERROR_LOG(Log::SaveState, "Savestate failure: unknown operation type %d", op.type); + ERROR_LOG(Log::SaveState, "Savestate failure: unknown operation type %d", (int)op.type); callbackResult = Status::FAILURE; break; }