Skip to content

Commit

Permalink
Merge pull request #6449 from Rdatatable/initialize-ties
Browse files Browse the repository at this point in the history
Initialize 'ties' enum in frank
  • Loading branch information
MichaelChirico authored Sep 3, 2024
2 parents d6a9fe7 + ef8da05 commit 568c938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frank.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ SEXP dt_na(SEXP x, SEXP cols) {

SEXP frank(SEXP xorderArg, SEXP xstartArg, SEXP xlenArg, SEXP ties_method) {
const int *xstart = INTEGER(xstartArg), *xlen = INTEGER(xlenArg), *xorder = INTEGER(xorderArg);
enum {MEAN, MAX, MIN, DENSE, SEQUENCE, LAST} ties; // RUNLENGTH
enum {MEAN, MAX, MIN, DENSE, SEQUENCE, LAST} ties=0; // RUNLENGTH

const char *pties = CHAR(STRING_ELT(ties_method, 0));
if (!strcmp(pties, "average")) ties = MEAN;
Expand Down

0 comments on commit 568c938

Please sign in to comment.