Skip to content

Commit

Permalink
[cgo] refs skycoin#105 Finalized restore the cipher.hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Sep 24, 2019
1 parent 1287531 commit 8832cd8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/cgo/cipher.hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,10 @@ func SKY_cipher_SHA256_Set(_g *C.cipher__SHA256, _b []byte) (____error_code uint
}

//export SKY_cipher_SHA256_Hex
func SKY_cipher_SHA256_Hex(_g *C.cipher__SHA256, _arg1 *string) (____error_code uint32) {
func SKY_cipher_SHA256_Hex(_g *C.cipher__SHA256, _arg1 *C.GoString_) (____error_code uint32) {
g := (*cipher.SHA256)(unsafe.Pointer(_g))
*_arg1 = g.Hex()
__arg1 := g.Hex()
copyString(__arg1,_arg1)
return
}

Expand Down

0 comments on commit 8832cd8

Please sign in to comment.