Skip to content

Commit

Permalink
Ensure VIPS_ARG_* defaults are in-sync with _init()
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Jan 24, 2025
1 parent 09e9233 commit f4e93ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libvips/arithmetic/hough_circle.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ vips_hough_circle_class_init(VipsHoughClass *class)
_("Scale down dimensions by this factor"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsHoughCircle, scale),
1, 100000, 3);
1, 100000, 1);

VIPS_ARG_INT(class, "min_radius", 120,
_("Min radius"),
Expand Down
2 changes: 1 addition & 1 deletion libvips/arithmetic/min.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ vips_min_class_init(VipsMinClass *class)
_("Number of minimum values to find"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsMin, size),
1, 1000000, 10);
1, 1000000, 1);

VIPS_ARG_BOXED(class, "out_array", 6,
_("Output array"),
Expand Down
2 changes: 1 addition & 1 deletion libvips/conversion/gamma.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ vips_gamma_class_init(VipsGammaClass *class)
_("Gamma factor"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsGamma, exponent),
0.000001, 1000.0, 2.4);
0.000001, 1000.0, 1.0 / 2.4);
}

static void
Expand Down
2 changes: 1 addition & 1 deletion libvips/conversion/msb.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ vips_msb_class_init(VipsMsbClass *class)
_("Band to msb"),
VIPS_ARGUMENT_OPTIONAL_INPUT,
G_STRUCT_OFFSET(VipsMsb, band),
0, 100000000, 0);
-1, 100000000, -1);
}

static void
Expand Down

0 comments on commit f4e93ad

Please sign in to comment.