|
|
@@ -583,7 +583,7 @@ void subbrute_protocol_create_candidate_for_existing_file(
|
|
|
uint8_t high_byte = (step >> 8) & 0xff;
|
|
|
|
|
|
size_t size = sizeof(uint64_t);
|
|
|
- for(uint8_t i = 0; i < size; i++) {
|
|
|
+ for(size_t i = 0; i < size; i++) {
|
|
|
if(i == bit_index - 1 && two_bytes) {
|
|
|
furi_string_cat_printf(candidate, "%02X %02X", high_byte, low_byte);
|
|
|
i++;
|
|
|
@@ -618,7 +618,7 @@ void subbrute_protocol_create_candidate_for_default(
|
|
|
uint64_t total = 0;
|
|
|
for(size_t j = 0; j < 8; j++) {
|
|
|
total |= lut[step % 3] << (2 * j);
|
|
|
- double sub_step = step / 3;
|
|
|
+ double sub_step = (double)step / 3;
|
|
|
step = (uint64_t)floor(sub_step);
|
|
|
}
|
|
|
total <<= 9;
|
|
|
@@ -635,7 +635,7 @@ void subbrute_protocol_create_candidate_for_default(
|
|
|
uint64_t total = 0;
|
|
|
for(size_t j = 0; j < 8; j++) {
|
|
|
total |= lut[step % 3] << (2 * j);
|
|
|
- double sub_step = step / 3;
|
|
|
+ double sub_step = (double)step / 3;
|
|
|
step = (uint64_t)floor(sub_step);
|
|
|
}
|
|
|
total <<= 9;
|
|
|
@@ -654,7 +654,7 @@ void subbrute_protocol_create_candidate_for_default(
|
|
|
uint64_t total = 0;
|
|
|
for(size_t j = 0; j < 8; j++) {
|
|
|
total |= lut[step % 3] << (2 * j);
|
|
|
- double sub_step = step / 3;
|
|
|
+ double sub_step = (double)step / 3;
|
|
|
step = (uint64_t)floor(sub_step);
|
|
|
}
|
|
|
total <<= 8;
|
|
|
@@ -670,7 +670,7 @@ void subbrute_protocol_create_candidate_for_default(
|
|
|
}
|
|
|
|
|
|
size_t size = sizeof(uint64_t);
|
|
|
- for(uint8_t i = 0; i < size; i++) {
|
|
|
+ for(size_t i = 0; i < size; i++) {
|
|
|
if(p[i] != 0) {
|
|
|
furi_string_cat_printf(candidate, "%02X", p[i]);
|
|
|
} else {
|