Skip to content

Commit 191488b

Browse files
committed
flamenco: fix unit test compile under gcc 8.5
1 parent 314c3fa commit 191488b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/flamenco/runtime/test_txn_rw_conflicts.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ void add_address_lookup_table( fd_funk_t * funk,
143143

144144
/* Append an address lookup table after txn_payload */
145145
fd_txn_acct_addr_lut_t alt = {
146-
.addr_off =in_payload_sz+sizeof(fd_txn_acct_addr_lut_t),
147-
.writable_cnt=1,
148-
.readonly_cnt=1,
149-
.writable_off=in_payload_sz+sizeof(fd_txn_acct_addr_lut_t)+sizeof(fd_acct_addr_t),
150-
.readonly_off=in_payload_sz+sizeof(fd_txn_acct_addr_lut_t)+sizeof(fd_acct_addr_t)+sizeof(uchar)
146+
.addr_off =(ushort)(in_payload_sz+sizeof(fd_txn_acct_addr_lut_t)),
147+
.writable_cnt=(ushort)1,
148+
.readonly_cnt=(ushort)1,
149+
.writable_off=(ushort)(in_payload_sz+sizeof(fd_txn_acct_addr_lut_t)+sizeof(fd_acct_addr_t)),
150+
.readonly_off=(ushort)(in_payload_sz+sizeof(fd_txn_acct_addr_lut_t)+sizeof(fd_acct_addr_t)+sizeof(uchar))
151151
};
152152
/* original txn binary lookup table struct lookup table address address indexes */
153153
//uchar txn_with_alt[ in_payload +sizeof(fd_txn_acct_addr_lut_t)+sizeof(fd_acct_addr_t)+sizeof(uchar)*2 ];

0 commit comments

Comments
 (0)