Skip to content

Commit

Permalink
another attempt for lto warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jangorecki committed Nov 25, 2023
1 parent 86c75a6 commit 986fa07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chmatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static SEXP chmatchMain(SEXP x, SEXP table, int nomatch, bool chin, bool chmatch
// For example: A,B,C,B,D,E,A,A => A(TL=1),B(2),C(3),D(4),E(5) => dupMap 1 2 3 5 6 | 8 7 4
// dupLink 7 8 | 6 (blank=0)
int *counts = (int *)calloc(nuniq, sizeof(int));
int mapsize = tablelen+nuniq; // lto compilation warning #5760
unsigned int mapsize = tablelen+nuniq; // lto compilation warning #5760
int *map = (int *)calloc(mapsize, sizeof(int)); // +nuniq to store a 0 at the end of each group
if (!counts || !map) {
// # nocov start
Expand Down

0 comments on commit 986fa07

Please sign in to comment.