Skip to content
Snippets Groups Projects
Commit 22795d22 authored by lhausamm's avatar lhausamm Committed by Matthieu Schaller
Browse files

Fix test with gcc7

parent c90ffa87
Branches
Tags
No related merge requests found
...@@ -40,7 +40,7 @@ void dump_mapper(void *map_data, int num_elements, void *extra_data) { ...@@ -40,7 +40,7 @@ void dump_mapper(void *map_data, int num_elements, void *extra_data) {
size_t offset; size_t offset;
char *out_string = dump_get(d, 7, &offset); char *out_string = dump_get(d, 7, &offset);
char out_buff[8]; char out_buff[8];
snprintf(out_buff, 8, "%06zi\n", offset / 7); snprintf(out_buff, 8, "%06zi\n", (offset / 7) % 1000000);
memcpy(out_string, out_buff, 7); memcpy(out_string, out_buff, 7);
} }
......
...@@ -673,6 +673,7 @@ int main(int argc, char *argv[]) { ...@@ -673,6 +673,7 @@ int main(int argc, char *argv[]) {
break; break;
case 's': case 's':
sscanf(optarg, "%lf", &spacing); sscanf(optarg, "%lf", &spacing);
break;
case 'n': case 'n':
sscanf(optarg, "%zu", &count); sscanf(optarg, "%zu", &count);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment