aboutsummaryrefslogtreecommitdiffstats
path: root/cshared/objects_cshared.go
diff options
context:
space:
mode:
authorVadim Markovtsev <vadim@sourced.tech>2016-06-21 17:14:53 +0300
committerVadim Markovtsev <vadim@sourced.tech>2016-06-21 17:14:53 +0300
commitda07dca4523ebd25c634152a62cae4a72eb5783f (patch)
tree028122b562ce464ae4410525b5b3d3dfcea4846c /cshared/objects_cshared.go
parentbea415417e87fbb403095e8cd3fb8512a1a97af8 (diff)
downloadgo-git-da07dca4523ebd25c634152a62cae4a72eb5783f.tar.gz
Wrap more objects with CGo
Diffstat (limited to 'cshared/objects_cshared.go')
-rw-r--r--cshared/objects_cshared.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cshared/objects_cshared.go b/cshared/objects_cshared.go
index 5c794c3..9f14598 100644
--- a/cshared/objects_cshared.go
+++ b/cshared/objects_cshared.go
@@ -54,7 +54,7 @@ func c_Blob_get_Hash(b uint64) *C.char {
return nil
}
blob := obj.(*git.Blob)
- return C.CString(string(blob.Hash[:]))
+ return CBytes(blob.Hash[:])
}
//export c_Blob_Size