diff options
author | Adeel <adeelbm@outlook.com> | 2019-02-24 12:14:06 -0800 |
---|---|---|
committer | Adeel <adeelbm@outlook.com> | 2019-02-24 15:53:32 -0800 |
commit | dc19f81f05dd2559af329c528c2f04e869d8ef1e (patch) | |
tree | a61fb44fa2b31ec85e2daf9e670f01a6c4f97e59 /src/vm/codeversion.h | |
parent | 333232d98639df980133205c41791cb9dc7f3d34 (diff) | |
download | coreclr-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.h | 22 |
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; }; }; |