Skip to content

Commit

Permalink
fix bug ref #34
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvaro Denis committed May 24, 2019
1 parent fe3a69a commit d2135b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lib/cgo/tests/check_cipher.address.common.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ START_TEST(TestAddressFromBytes)

SKY_cipher_Address_Bytes(&addr, &tempBytes);
ck_assert_msg(tempBytes.len > 0, "address bytes written");
copyGoSlice_toGoSlice(&bytes, &tempBytes, tempBytes.len);
copyGoSlice_toGoSlice(&bytes, &tempBytes, sizeof(*buff));
err = SKY_cipher_AddressFromBytes(bytes, &addr2);
ck_assert_msg(err == SKY_OK, "convert bytes to SKY address");

Expand Down
1 change: 0 additions & 1 deletion lib/cgo/tests/check_cipher.hash.common.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ START_TEST(TestSHA256FromHex)

// Valid hex hash
GoString_ s2;
memset(&s2, 0, sizeof(GoString_));
SKY_cipher_SHA256_Hex(&h, &s2);
registerMemCleanup((void*)s2.p);
cipher__SHA256 h2;
Expand Down

0 comments on commit d2135b8

Please sign in to comment.