We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71bbb83 commit 1af4f2eCopy full SHA for 1af4f2e
type_wrapper.go
@@ -44,7 +44,7 @@ type GoNumber interface {
44
}
45
46
// wrapPtrCType is a generic method to convert GOTYPE (int32/float32 e.t.c.) into CTYPE (c_int/c_float e.t.c.)
47
-func wrapPtrCType[CTYPE CNumber, GOTYPE GoNumber](goValue *GOTYPE) (wrapped CTYPE, finisher func()) {
+func wrapPtrCType[CTYPE CNumber, GOTYPE GoNumber](goValue *GOTYPE) (wrapped *CTYPE, finisher func()) {
48
if goValue != nil {
49
cValue := CTYPE(*goValue)
50
wrapped = cValue
0 commit comments