From: SaeHie Park Date: Wed, 23 Nov 2016 10:10:24 +0000 (+0900) Subject: [x86/Linux] Fix comparison of two values with different enumeration types (dotnet... X-Git-Tag: submit/tizen/20210909.063632~11030^2~8828 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8eb718611a85f6ca55137de84394bd4cf6cda3e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [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 --- 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; }