Skip to content

Commit

Permalink
memset lose precision in argument (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
howjmay authored Jul 29, 2020
1 parent 5c3a956 commit fe377e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/model/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ void transaction_free(iota_transaction_t *const transaction) { free(transaction)
void transaction_obj_dump(iota_transaction_t *tx_obj) {
field_mask_t old_mask;
memcpy(&old_mask, &tx_obj->loaded_columns_mask, sizeof(field_mask_t));
memset(&tx_obj->loaded_columns_mask, 0xFFFFF, sizeof(field_mask_t));
memset(&tx_obj->loaded_columns_mask, 0xFFFF, sizeof(field_mask_t));

printf("==========Transaction Object==========\n");
// address
Expand Down

0 comments on commit fe377e7

Please sign in to comment.