Skip to content

Commit

Permalink
Merge pull request #88268 from zaevi/dotnet/fix_64bit_promotion
Browse files Browse the repository at this point in the history
C#: Fix missing CowData 64-bit promotion for `PackedInt32Array`.
  • Loading branch information
akien-mga committed Feb 13, 2024
2 parents 404f226 + 8245157 commit fb688b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ public readonly unsafe int* Buffer
public readonly unsafe int Size
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => _ptr != null ? *(_ptr - 1) : 0;
get => _ptr != null ? (int)(*((ulong*)_ptr - 1)) : 0;
}
}

Expand Down

0 comments on commit fb688b3

Please sign in to comment.