Skip to content

Commit 10e026d

Browse files
jherrera-jumpmmcgee-jump
authored andcommitted
gui: remove unecessary cast
1 parent 9f1a96a commit 10e026d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/disco/gui/fd_gui.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,7 @@ fd_gui_unbecame_leader( fd_gui_t * gui,
26572657
if( FD_UNLIKELY( !slot ) ) slot = fd_gui_clear_slot( gui, _slot, ULONG_MAX );
26582658
fd_gui_leader_slot_t * lslot = fd_gui_get_leader_slot( gui, _slot );
26592659
if( FD_LIKELY( !lslot ) ) return;
2660-
lslot->txs.microblocks_upper_bound = (ushort)done_packing->microblocks_in_slot;
2660+
lslot->txs.microblocks_upper_bound = (uint)done_packing->microblocks_in_slot;
26612661
fd_memcpy( lslot->scheduler_stats, done_packing, sizeof(fd_done_packing_t) );
26622662

26632663
/* fd_gui_handle_slot_end may have already been called in response to
@@ -2720,7 +2720,7 @@ fd_gui_microblock_execution_begin( fd_gui_t * gui,
27202720
even if it received microblocks with multiple transactions
27212721
(i.e. a bundle). This means that we need to calculate microblock
27222722
count here based on the transaction count. */
2723-
lslot->txs.begin_microblocks = (ushort)(lslot->txs.begin_microblocks + txn_cnt);
2723+
lslot->txs.begin_microblocks += (uint)txn_cnt;
27242724
}
27252725

27262726
void

0 commit comments

Comments
 (0)