dotnet / dotnet/dotnet-api-docs

Question about OpCodes.Ldind_I8 with integer values of less than 8 bytes

Open
#8,682 3 comments 0 reactions 0 assignees View on GitHub
area-System.Reflection.Emit doc-bug Pri3
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

Sorry for stupid question, but...

The [docs ](https://learn.microsoft.com/en-us/dotnet/api/system.reflection.emit.opcodes.ldind_i8?view=net-7.0) mention have the following description for instruction:

> Loads the `int64` value at address addr onto the stack as an `int64`.

And mention next:

> Note that integer values of less than 4 bytes are extended to int32 (not native int) when they are loaded onto the evaluation stack. Floating-point values are converted to F type when loaded onto the evaluation stack.

But what will happen with values less than 8 bytes? Isn't `int64` 8 bytes? Am I missing something or should this be mentioned/fixed in the docs?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.