diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 11:25:17 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-02-13 11:25:17 +0100 |
commit | fb688b38d11cf03d3c639247de1a1cc748af73e8 (patch) | |
tree | 1a25f346d1a284ef1bd697b7186ae808b1e745ef | |
parent | 404f226d1dc58d157746618b9a8283087ba65081 (diff) | |
parent | 8245157682a635387707f96c8f0b588534e8fcdf (diff) | |
download | redot-engine-fb688b38d11cf03d3c639247de1a1cc748af73e8.tar.gz |
Merge pull request #88268 from zaevi/dotnet/fix_64bit_promotion
C#: Fix missing CowData 64-bit promotion for `PackedInt32Array`.
-rw-r--r-- | modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs index a1a011e0f0..a8642a916c 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/InteropStructs.cs @@ -962,7 +962,7 @@ namespace Godot.NativeInterop public readonly unsafe int Size { [MethodImpl(MethodImplOptions.AggressiveInlining)] - get => _ptr != null ? *(_ptr - 1) : 0; + get => _ptr != null ? (int)(*((ulong*)_ptr - 1)) : 0; } } |