Changes some cast to C.gsize to ensure size_t compatibility

This commit is contained in:
MATONE\SVelosamy
2020-12-28 15:00:39 +08:00
parent df4ff5b93d
commit 66fba2d0f0
5 changed files with 7 additions and 4 deletions

View File

@@ -43,7 +43,7 @@ func (o *Object) Name() string {
// Interfaces returns the interfaces associated with this object.
func (o *Object) Interfaces() []string {
var size C.guint
ifaces := C.g_type_interfaces(C.ulong(o.TypeFromInstance()), &size)
ifaces := C.g_type_interfaces(C.gsize(o.TypeFromInstance()), &size)
if int(size) == 0 {
return nil
}