remove bad cast

This commit is contained in:
goaaats 2025-04-13 21:59:45 +02:00
parent 308b9e4575
commit 71d7ba8c88

View file

@ -492,7 +492,7 @@ public static partial class ImGuiHelpers
/// <exception cref="OutOfMemoryException">If <see cref="ImGui.MemAlloc(nuint)"/> returns null.</exception>
public static unsafe void* AllocateMemory(nuint length)
{
var memory = ImGui.MemAlloc((uint)length);
var memory = ImGui.MemAlloc(length);
if (memory is null)
{
throw new OutOfMemoryException(