diff options
author | SaeHie Park <saehie.park@gmail.com> | 2016-11-23 19:10:24 +0900 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-11-23 11:10:24 +0100 |
commit | f1f820681bb1c1e008aef85fb5354b8968266eb3 (patch) | |
tree | c6707bc9bdbac581ae7796b4129c0bad85dd3dcb | |
parent | 2f0f156c9ea8992376c08c6b4f5804ae9c4ba19d (diff) | |
download | coreclr-f1f820681bb1c1e008aef85fb5354b8968266eb3.tar.gz coreclr-f1f820681bb1c1e008aef85fb5354b8968266eb3.tar.bz2 coreclr-f1f820681bb1c1e008aef85fb5354b8968266eb3.zip |
[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'
-rw-r--r-- | src/jit/gcencode.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |