[x86/Linux] Fix comparison of two values with different enumeration types (dotnet...
authorSaeHie Park <saehie.park@gmail.com>
Wed, 23 Nov 2016 10:10:24 +0000 (19:10 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 23 Nov 2016 10:10:24 +0000 (11:10 +0100)
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

index 91aa084..3bfa6e0 100644 (file)
@@ -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;
     }