Skip to content

Commit

Permalink
Fix parameter validation
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Apr 22, 2024
1 parent 40fa996 commit 1fec299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/param.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ int set_paramptr(FILE* paramfile)

if (g_P_set[YP_PARAM_MAX_TIME_JUMP][0])
{
if (g_P_set[YP_PARAM_MAX_TIME_JUMP][0] <= 0)
if (g_P[YP_PARAM_MAX_TIME_JUMP][0] <= 0)
{
yprintf(OUTPUT_LV_ERROR, "ERROR: MAX_TIME_JUMP must be > 0.0.\n");
param_error = 1;
Expand All @@ -954,7 +954,7 @@ int set_paramptr(FILE* paramfile)
}
if (g_P_set[YP_PARAM_MAX_TIME_JUMP_NEG][0])
{
if (g_P_set[YP_PARAM_MAX_TIME_JUMP_NEG][0] <= 0)
if (g_P[YP_PARAM_MAX_TIME_JUMP_NEG][0] <= 0)
{
yprintf(OUTPUT_LV_ERROR, "ERROR: -MAX_TIME_JUMP must be > 0.0.\n");
param_error = 1;
Expand Down

0 comments on commit 1fec299

Please sign in to comment.