From d8eb718611a85f6ca55137de84394bd4cf6cda3e Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Wed, 23 Nov 2016 19:10:24 +0900 Subject: [PATCH] [x86/Linux] Fix comparison of two values with different enumeration types (dotnet/coreclr#8273) Fix compile error for x86/Linux - convert to int type for 'ReturnKind' and 'infoHdrAdjustConstants' Commit migrated from https://github.com/dotnet/coreclr/commit/f1f820681bb1c1e008aef85fb5354b8968266eb3 --- src/coreclr/src/jit/gcencode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreclr/src/jit/gcencode.cpp b/src/coreclr/src/jit/gcencode.cpp index 91aa084..3bfa6e0 100644 --- a/src/coreclr/src/jit/gcencode.cpp +++ b/src/coreclr/src/jit/gcencode.cpp @@ -1303,7 +1303,7 @@ size_t GCInfo::gcInfoBlockHdrSave( ReturnKind returnKind = getReturnKind(); _ASSERTE(IsValidReturnKind(returnKind) && "Return Kind must be valid"); _ASSERTE(!IsStructReturnKind(returnKind) && "Struct Return Kinds Unexpected for JIT32"); - _ASSERTE((returnKind < SET_RET_KIND_MAX) && "ReturnKind has no legal encoding"); + _ASSERTE(((int)returnKind < (int)SET_RET_KIND_MAX) && "ReturnKind has no legal encoding"); header->returnKind = returnKind; } -- 2.7.4