Skip to content

Commit

Permalink
.net 8
Browse files Browse the repository at this point in the history
  • Loading branch information
Aragas committed Nov 14, 2023
1 parent 9137cd0 commit 8b62b3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BUTR.NativeAOT.Shared/BUTR.NativeAOT.Shared.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Expand Down
2 changes: 1 addition & 1 deletion src/BUTR.NativeAOT.Shared/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static unsafe SafeStructMallocHandle<TValue> Create<TValue>(TValue value,
{
var size = Unsafe.SizeOf<TValue>();
var dst = (TValue*) Allocator.Alloc(new UIntPtr((uint) size));
MemoryMarshal.Write(new Span<byte>(dst, size), ref value);
MemoryMarshal.Write(new Span<byte>(dst, size), in value);
return SafeStructMallocHandle.Create(dst, isOwner);
}
}
Expand Down

0 comments on commit 8b62b3d

Please sign in to comment.