MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1w630ne/branchavoidant_programming/p7n16n8/?context=3
r/programming • u/fagnerbrack • Sep 03 '26
92 comments sorted by
View all comments
Show parent comment
7
Ah, thanks for pointing that out.
It will have a value written to it, yes, but smlen will remain 0 in all cases so there shouldn't be any risk. In all cases the array has SIZE elements. smlen tells us how many contain valid numbers.
smlen
SIZE
View all comments
Show parent comment
7
u/nukethebees Sep 03 '26
Ah, thanks for pointing that out.
It will have a value written to it, yes, but
smlenwill remain 0 in all cases so there shouldn't be any risk. In all cases the array hasSIZEelements.smlentells us how many contain valid numbers.