summaryrefslogtreecommitdiff
path: root/src/vm/codeversion.h
diff options
context:
space:
mode:
authorAdeel <adeelbm@outlook.com>2019-02-24 12:14:06 -0800
committerAdeel <adeelbm@outlook.com>2019-02-24 15:53:32 -0800
commitdc19f81f05dd2559af329c528c2f04e869d8ef1e (patch)
treea61fb44fa2b31ec85e2daf9e670f01a6c4f97e59 /src/vm/codeversion.h
parent333232d98639df980133205c41791cb9dc7f3d34 (diff)
downloadcoreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.tar.gz
coreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.tar.bz2
coreclr-dc19f81f05dd2559af329c528c2f04e869d8ef1e.zip
Fix comparison and narrowing errors reported by GCC
Diffstat (limited to 'src/vm/codeversion.h')
-rw-r--r--src/vm/codeversion.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/vm/codeversion.h b/src/vm/codeversion.h
index 821c938788..a85a6beb21 100644
--- a/src/vm/codeversion.h
+++ b/src/vm/codeversion.h
@@ -105,14 +105,16 @@ private:
Synthetic
};
+ struct SyntheticStorage
+ {
+ PTR_MethodDesc m_pMethodDesc;
+ };
+
StorageKind m_storageKind;
union
{
PTR_NativeCodeVersionNode m_pVersionNode;
- struct SyntheticStorage
- {
- PTR_MethodDesc m_pMethodDesc;
- } m_synthetic;
+ SyntheticStorage m_synthetic;
};
#endif // FEATURE_CODE_VERSIONING
};
@@ -203,15 +205,17 @@ private:
Synthetic
};
+ struct SyntheticStorage
+ {
+ PTR_Module m_pModule;
+ mdMethodDef m_methodDef;
+ };
+
StorageKind m_storageKind;
union
{
PTR_ILCodeVersionNode m_pVersionNode;
- struct SyntheticStorage
- {
- PTR_Module m_pModule;
- mdMethodDef m_methodDef;
- } m_synthetic;
+ SyntheticStorage m_synthetic;
};
};