From 6d92949715c5cd7aa0ae2450bd48328df140c523 Mon Sep 17 00:00:00 2001 From: visualfc Date: Mon, 5 Aug 2024 11:17:42 +0800 Subject: [PATCH] cpp/std: fix std::string def --- cpp/std/string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/std/string.go b/cpp/std/string.go index 5427a51a..5f3b2105 100644 --- a/cpp/std/string.go +++ b/cpp/std/string.go @@ -31,7 +31,7 @@ type StringView = string // String represents a C++ std::string object. type String struct { - Unused [3]uintptr + Unused [3 * unsafe.Sizeof(0)]byte } // llgo:link (*String).InitEmpty C.stdStringInitEmpty