Skip to content

Commit 0ceb5b1

Browse files
committed
fix usize
1 parent 55b91c8 commit 0ceb5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pallets/subtensor/src/epoch.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,11 @@ impl<T: Config> Pallet<T> {
733733
for (uid_i, weights_i) in
734734
<Weights<T> as IterableStorageDoubleMap<u16, u16, Vec<(u16, u16)>>>::iter_prefix(netuid)
735735
{
736-
if uid_i >= n {
736+
if uid_i >= n as u16 {
737737
continue;
738738
}
739739
for (uid_j, weight_ij) in weights_i.iter() {
740-
if *uid_j >= n {
740+
if *uid_j >= n as u16 {
741741
continue;
742742
}
743743
weights[uid_i as usize].push((*uid_j, I32F32::from_num(*weight_ij)));

0 commit comments

Comments
 (0)