From f1f820681bb1c1e008aef85fb5354b8968266eb3 Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Wed, 23 Nov 2016 19:10:24 +0900 Subject: [x86/Linux] Fix comparison of two values with different enumeration types (#8273) Fix compile error for x86/Linux - convert to int type for 'ReturnKind' and 'infoHdrAdjustConstants' --- src/jit/gcencode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/jit/gcencode.cpp b/src/jit/gcencode.cpp index 91aa084f2d..3bfa6e0e93 100644 --- a/src/jit/gcencode.cpp +++ b/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; } -- cgit v1.2.3