Skip to content

Commit

Permalink
[cgo][libc] refs fibercrypto#105 Correcting coin.block memory in p…
Browse files Browse the repository at this point in the history
…yskycoin
  • Loading branch information
Maykel Arias Torres committed Sep 25, 2019
1 parent 472036f commit 364f127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cgo/coin.block.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ func SKY_coin_BlockHeader_Hash(_bh C.BlockHeader__Handle, _arg0 *C.cipher__SHA25
}

//export SKY_coin_BlockHeader_Bytes
func SKY_coin_BlockHeader_Bytes(_bh *C.coin__BlockHeader, _arg0 *[]byte) (____error_code uint32) {
func SKY_coin_BlockHeader_Bytes(_bh *C.coin__BlockHeader, _arg0 *C.GoSlice_) (____error_code uint32) {
bh := *(*coin.BlockHeader)(unsafe.Pointer(_bh))
__arg0 := bh.Bytes()
*_arg0 = __arg0
copyToGoSlice(reflect.ValueOf(__arg0), _arg0)
return
}

Expand Down

0 comments on commit 364f127

Please sign in to comment.