Fix for Go 1.9 that didn't treat typedefs of the same type as the same type

This commit is contained in:
Segev Finer 2020-11-10 19:11:44 +02:00
parent 0476e7d58f
commit c58fb46e56
1 changed files with 1 additions and 1 deletions

View File

@ -512,7 +512,7 @@ func ReferenceNormalizeName(name string, flags ReferenceFormat) (string, error)
cname := C.CString(name)
defer C.free(unsafe.Pointer(cname))
bufSize := C.ulong(1024)
bufSize := C.size_t(1024)
buf := (*C.char)(C.malloc(bufSize))
defer C.free(unsafe.Pointer(buf))