diff options
| -rw-r--r-- | src/postprocess/merge_entries.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/postprocess/merge_entries.c b/src/postprocess/merge_entries.c index f248a3f..0b35fc4 100644 --- a/src/postprocess/merge_entries.c +++ b/src/postprocess/merge_entries.c | |||
| @@ -225,7 +225,7 @@ int main(int argc, char **args) { | |||
| 225 | entry_t * sort_array; | 225 | entry_t * sort_array; |
| 226 | int outoff = 0, lines = COLUMNS; | 226 | int outoff = 0, lines = COLUMNS; |
| 227 | unsigned long current = 0, i, flag; | 227 | unsigned long current = 0, i, flag; |
| 228 | __uint128_t year_list = 0, revflag_list = 0, bizflag_list = 0; | 228 | __uint128_t year_list = 0, revflag_list = 0, bizflag_list = 0, one = 1; |
| 229 | 229 | ||
| 230 | if (argc != 2) exit(1); | 230 | if (argc != 2) exit(1); |
| 231 | tbuch = map_file(args[1], 1); | 231 | tbuch = map_file(args[1], 1); |
| @@ -278,9 +278,9 @@ int main(int argc, char **args) { | |||
| 278 | qsort(sort_array, current, sizeof(entry_t), sort_me); | 278 | qsort(sort_array, current, sizeof(entry_t), sort_me); |
| 279 | 279 | ||
| 280 | for (i=0; i<current; ++i) { | 280 | for (i=0; i<current; ++i) { |
| 281 | year_list |= 1LL << sort_array[i].year; | 281 | year_list |= one << sort_array[i].year; |
| 282 | if (sort_array[i].flag & 0x80 ) bizflag_list |= 1LL << sort_array[i].year; | 282 | if (sort_array[i].flag & 0x80 ) bizflag_list |= one << sort_array[i].year; |
| 283 | if (sort_array[i].flag & 0x40 ) revflag_list |= 1LL << sort_array[i].year; | 283 | if (sort_array[i].flag & 0x40 ) revflag_list |= one << sort_array[i].year; |
| 284 | 284 | ||
| 285 | if ((i == current - 1) || compare_entries(sort_array+i, sort_array+i+1)) { | 285 | if ((i == current - 1) || compare_entries(sort_array+i, sort_array+i+1)) { |
| 286 | // printf("%" PRIu64 "\t%" PRIu64 "\t%" PRIu64 "\t", year_list, bizflag_list, revflag_list); | 286 | // printf("%" PRIu64 "\t%" PRIu64 "\t%" PRIu64 "\t", year_list, bizflag_list, revflag_list); |
