Skip to content

cmd/cgo: C.size_t issues on Xcode 5 #6506

@gopherbot

Description

@gopherbot

by os2nuke:

This is a link to the related issue with C.malloc:

https://golang.org/issue/5926

What steps will reproduce the problem?
Build a cgo program which uses C.calloc() and pass a C.size_t parameter.

What is the expected output?
Build without errors.

What do you see instead?
cannot use _Ctype_size_t(length + 1) (type C.size_t) as type C.ulong in function argument

Which operating system are you using?
OS X 10.9 Mavericks

Which version are you using?  (run 'go version')
go version devel +67b829e5a2a8 Fri Sep 27 20:38:52 2013 -0700 darwin/amd64

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions