From 1bff32113a70844308b18dba33ae0a038c997b82 Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Sat, 17 Feb 2024 13:16:40 +0100 Subject: [PATCH] examples: fix build error in dragdrop example --- examples/dragdrop/dragdrop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/dragdrop/dragdrop.go b/examples/dragdrop/dragdrop.go index 40ce4b4b..cc4f056b 100644 --- a/examples/dragdrop/dragdrop.go +++ b/examples/dragdrop/dragdrop.go @@ -19,7 +19,7 @@ func loop() { data := 9 imgui.SetDragDropPayload( "DND_DEMO", - unsafe.Pointer(&data), + uintptr(unsafe.Pointer(&data)), 0, ) g.Label("9").Build() @@ -32,7 +32,7 @@ func loop() { data := 10 imgui.SetDragDropPayload( "DND_DEMO", - unsafe.Pointer(&data), + uintptr(unsafe.Pointer(&data)), 0, ) g.Label("10").Build()