Also remove {} from a for in d5p1.
This commit is contained in:
parent
c1f11c1ebc
commit
69b8c48ef3
@ -51,12 +51,11 @@ int main(int argc, char **argv) {
|
|||||||
uint64_t dst = 0, src = 0, rng = 0;
|
uint64_t dst = 0, src = 0, rng = 0;
|
||||||
sscanf(line, "%lu %lu %lu\n", &dst, &src, &rng);
|
sscanf(line, "%lu %lu %lu\n", &dst, &src, &rng);
|
||||||
|
|
||||||
for (size_t i = 0; i < data_len; ++i) {
|
for (size_t i = 0; i < data_len; ++i)
|
||||||
if (!data_v[i] && data[i] >= src && data[i] < src+rng) {
|
if (!data_v[i] && data[i] >= src && data[i] < src+rng) {
|
||||||
data[i] = dst + (data[i] - src);
|
data[i] = dst + (data[i] - src);
|
||||||
data_v[i] = true;
|
data_v[i] = true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
memset(line, 0, line_buf_length);
|
memset(line, 0, line_buf_length);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user