Skip to content

Commit

Permalink
[cgo][test-libc] refs fibercrypto#116 Finalized coin.outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maykel Arias Torres committed Feb 2, 2020
1 parent 2eb3335 commit f9fb2fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/cgo/coin.outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func SKY_coin_AddressUxOuts_Flatten(_auo *C.AddressUxOuts__Handle, _arg0 *C.coin
}
auo := *__auo
__arg0 := auo.Flatten()
copyToBuffer(reflect.ValueOf(__arg0[:]), unsafe.Pointer(_arg0), uint(SizeofUxArray))
copyTocoin_UxArray(reflect.ValueOf(__arg0), _arg0)
return
}

Expand Down Expand Up @@ -213,7 +213,7 @@ func SKY_coin_UxArray_Sub(_ua *C.coin__UxArray, _other *C.coin__UxArray, _arg1 *
ua := *(*coin.UxArray)(unsafe.Pointer(_ua))
other := *(*coin.UxArray)(unsafe.Pointer(_other))
__arg1 := ua.Sub(other)
copyToBuffer(reflect.ValueOf(__arg1[:]), unsafe.Pointer(_arg1), uint(SizeofUxArray))
copyTocoin_UxArray(reflect.ValueOf(__arg1), _arg1)
return
}

Expand All @@ -222,7 +222,7 @@ func SKY_coin_UxArray_Add(_ua *C.coin__UxArray, _other *C.coin__UxArray, _arg1 *
ua := *(*coin.UxArray)(unsafe.Pointer(_ua))
other := *(*coin.UxArray)(unsafe.Pointer(_other))
__arg1 := ua.Add(other)
copyToBuffer(reflect.ValueOf(__arg1[:]), unsafe.Pointer(_arg1), uint(SizeofUxArray))
copyTocoin_UxArray(reflect.ValueOf(__arg1), _arg1)
return
}

Expand Down
2 changes: 1 addition & 1 deletion lib/cgo/tests/check_coin.outputs.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ START_TEST(TestAddressUxOutsFlatten)
coin__UxOut* pData = uxa.data;
memcpy(&(pData + 2)->Body.Address, &(pData + 1)->Body.Address, sizeof(cipher__Address));
memset(&emptyArray, 0, sizeof(coin__UxArray));
AddressUxOuts__Handle h;
AddressUxOuts__Handle h = 0;
result = SKY_coin_NewAddressUxOuts(&emptyArray, &h);
ck_assert_msg(result == SKY_OK, "SKY_coin_NewAddressUxOuts failed");
registerHandleClose(h);
Expand Down

0 comments on commit f9fb2fc

Please sign in to comment.