Fix the desktop warning (dotnet/coreclr#22481)
authorSergey Andreenko <seandree@microsoft.com>
Fri, 8 Feb 2019 06:01:50 +0000 (22:01 -0800)
committerGitHub <noreply@github.com>
Fri, 8 Feb 2019 06:01:50 +0000 (22:01 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/3fdd786cf6a30beaa55ff69f79da67d4b9ca69c6

src/coreclr/src/jit/codegencommon.cpp

index 1ff2871..f287835 100644 (file)
@@ -5843,7 +5843,7 @@ void CodeGen::genPopCalleeSavedRegistersAndFreeLclFrame(bool jmpEpilog)
                     // Restore sp from fp; here that's #outsz from SP
                     //      sub sp, fp, #outsz
                     int SPtoFPdelta = genSPtoFPdelta();
-                    assert(SPtoFPdelta == compiler->lvaOutgoingArgSpaceSize);
+                    assert(SPtoFPdelta == (int)compiler->lvaOutgoingArgSpaceSize);
                     getEmitter()->emitIns_R_R_I(INS_sub, EA_PTRSIZE, REG_SPBASE, REG_FPBASE, SPtoFPdelta);
                     compiler->unwindSetFrameReg(REG_FPBASE, SPtoFPdelta);
                 }