Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
Add missing cast to intptr_t (#2564)
Browse files Browse the repository at this point in the history
ldobj import casts the stack value to the token type but then wants to store the result as intptr_t again so another cast is needed.
  • Loading branch information
mikedn authored and jkotas committed Jan 22, 2017
1 parent 55aec26 commit 8811353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ILCompiler.Compiler/src/CppCodeGen/ILToCppImporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,7 @@ private void ImportLoadIndirect(TypeDesc type)

PushTemp(GetStackValueKind(type), type);

AppendCastIfNecessary(GetStackValueKind(type), type);
Append("*(");
Append(_writer.GetCppSignatureTypeName(type));
Append("*)");
Expand Down

0 comments on commit 8811353

Please sign in to comment.