Skip to content

Commit

Permalink
Correct calloc parameter order.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Nov 25, 2024
1 parent ea4e695 commit 5ed7170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion architecture/minimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ typedef struct ControlZone {
static ControlZone* newControl(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT init,
FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step)
{
ControlZone* ctrl = (ControlZone*)calloc(sizeof(ControlZone), 1);
ControlZone* ctrl = (ControlZone*)calloc(1, sizeof(ControlZone));
ctrl->fLabel = label;
ctrl->fZone = zone;
ctrl->fInit = init;
Expand Down

0 comments on commit 5ed7170

Please sign in to comment.