@@ -583,7 +583,7 @@ void subbrute_protocol_create_candidate_for_existing_file(
583
583
uint8_t high_byte = (step >> 8 ) & 0xff ;
584
584
585
585
size_t size = sizeof (uint64_t );
586
- for (uint8_t i = 0 ; i < size ; i ++ ) {
586
+ for (size_t i = 0 ; i < size ; i ++ ) {
587
587
if (i == bit_index - 1 && two_bytes ) {
588
588
furi_string_cat_printf (candidate , "%02X %02X" , high_byte , low_byte );
589
589
i ++ ;
@@ -618,7 +618,7 @@ void subbrute_protocol_create_candidate_for_default(
618
618
uint64_t total = 0 ;
619
619
for (size_t j = 0 ; j < 8 ; j ++ ) {
620
620
total |= lut [step % 3 ] << (2 * j );
621
- double sub_step = step / 3 ;
621
+ double sub_step = ( double ) step / 3 ;
622
622
step = (uint64_t )floor (sub_step );
623
623
}
624
624
total <<= 9 ;
@@ -635,7 +635,7 @@ void subbrute_protocol_create_candidate_for_default(
635
635
uint64_t total = 0 ;
636
636
for (size_t j = 0 ; j < 8 ; j ++ ) {
637
637
total |= lut [step % 3 ] << (2 * j );
638
- double sub_step = step / 3 ;
638
+ double sub_step = ( double ) step / 3 ;
639
639
step = (uint64_t )floor (sub_step );
640
640
}
641
641
total <<= 9 ;
@@ -654,7 +654,7 @@ void subbrute_protocol_create_candidate_for_default(
654
654
uint64_t total = 0 ;
655
655
for (size_t j = 0 ; j < 8 ; j ++ ) {
656
656
total |= lut [step % 3 ] << (2 * j );
657
- double sub_step = step / 3 ;
657
+ double sub_step = ( double ) step / 3 ;
658
658
step = (uint64_t )floor (sub_step );
659
659
}
660
660
total <<= 8 ;
@@ -670,7 +670,7 @@ void subbrute_protocol_create_candidate_for_default(
670
670
}
671
671
672
672
size_t size = sizeof (uint64_t );
673
- for (uint8_t i = 0 ; i < size ; i ++ ) {
673
+ for (size_t i = 0 ; i < size ; i ++ ) {
674
674
if (p [i ] != 0 ) {
675
675
furi_string_cat_printf (candidate , "%02X" , p [i ]);
676
676
} else {
0 commit comments