Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
arjain4 committed May 15, 2024
1 parent 3c11edd commit a9c25fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions src/flamenco/txn/Local.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ifdef FD_HAS_INT128
$(call add-hdrs,fd_txn_generate.h)
$(call add-objs,fd_txn_generate,fd_txn_generate)
.PHONY: fd_txn_generate

fd_txn_generate: $(OBJDIR)/bin/fd_txn_generate
$(call add-objs,fd_txn_generate,fd_flamenco)
endif
4 changes: 2 additions & 2 deletions src/flamenco/txn/fd_txn_generate.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ fd_txn_base_generate( uchar out_txn_meta[ static FD_TXN_MAX_SZ ],
fd_memcpy( write_ptr, accounts->signers_r, FD_TXN_ACCT_ADDR_SZ * accounts->readonly_signed_cnt );
write_ptr += FD_TXN_ACCT_ADDR_SZ * accounts->readonly_signed_cnt;

ulong non_signers_write_sz = FD_TXN_ACCT_ADDR_SZ * (accounts->acct_cnt - accounts->readonly_unsigned_cnt - accounts->signature_cnt);
ulong non_signers_write_sz = FD_TXN_ACCT_ADDR_SZ * (ulong)(accounts->acct_cnt - accounts->readonly_unsigned_cnt - accounts->signature_cnt);
fd_memcpy( write_ptr, accounts->non_signers_w, non_signers_write_sz);
write_ptr += non_signers_write_sz;

Expand Down Expand Up @@ -126,7 +126,7 @@ fd_txn_add_instr( uchar * txn_meta_ptr,
fd_memcpy( write_ptr, accounts, accounts_sz );
write_ptr += accounts_sz;

ushort data_sz = instr_buf_sz;
ushort data_sz = (ushort)instr_buf_sz;
uint compact_data_len_sz = fd_cu16_enc( data_sz, write_ptr );
write_ptr += compact_data_len_sz;

Expand Down

0 comments on commit a9c25fe

Please sign in to comment.