Skip to content

Commit 134a5d3

Browse files
just-kohkarlstav
authored andcommitted
Fixed incorrect data type and fixes for linter
1 parent 5dbfbde commit 134a5d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

config.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ bool load_config(char configPath[PATH_MAX], struct config_params *p, bool colors
11041104
p->sync_updates = GetPrivateProfileInt("output", "synchronized_sync", 0, configPath);
11051105
p->show_idle_bar_heads = GetPrivateProfileInt("output", "show_idle_bar_heads", 1, configPath);
11061106
p->waveform = GetPrivateProfileInt("output", "waveform", 0, configPath);
1107-
1107+
11081108
// read eq values
11091109
p->userEQ_keys = 0;
11101110
p->userEQ = (double *)malloc(sizeof(double));
@@ -1130,11 +1130,11 @@ bool load_config(char configPath[PATH_MAX], struct config_params *p, bool colors
11301130
return false;
11311131
}
11321132

1133-
int *endptr;
1133+
char *endptr;
11341134
p->userEQ[p->userEQ_keys] = strtod(eqResult, &endptr);
11351135
if (endptr == eqResult) {
11361136
write_errorf(error, "Invalid string to double conversion, %d : \"%s\" \n",
1137-
p->userEQ_keys + 1, eqResult);
1137+
p->userEQ_keys + 1, eqResult);
11381138
free(p->userEQ);
11391139
return false;
11401140
}

0 commit comments

Comments
 (0)