From 058ab24712b866a0305edf39f6fe95f2554e662f Mon Sep 17 00:00:00 2001 From: Kenneth Shaw Date: Thu, 18 Jan 2024 07:25:29 +0700 Subject: [PATCH] Fixing type --- resvg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resvg.go b/resvg.go index edafe0b..149950c 100644 --- a/resvg.go +++ b/resvg.go @@ -146,7 +146,7 @@ func (r *Resvg) buildOpts() *C.resvg_options { } for _, font := range r.Fonts { s := C.CString(string(font)) - C.resvg_options_load_font_data(opts, s, C.ulong(len(font))) + C.resvg_options_load_font_data(opts, s, C.uintptr_t(len(font))) C.free(unsafe.Pointer(s)) } for _, fontFile := range r.FontFiles {