diff options
Diffstat (limited to 'cyclone/hammer/minimum.c')
-rw-r--r-- | cyclone/hammer/minimum.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cyclone/hammer/minimum.c b/cyclone/hammer/minimum.c index 466b6f8..415235d 100644 --- a/cyclone/hammer/minimum.c +++ b/cyclone/hammer/minimum.c @@ -5,6 +5,8 @@ #include "m_pd.h" #include "common/loud.h" +#define MINIMUM_C74MAXITEMS 256 + typedef struct _minimum { t_object x_ob; @@ -27,7 +29,8 @@ static void minimum_float(t_minimum *x, t_float f) static void minimum_list(t_minimum *x, t_symbol *s, int ac, t_atom *av) { - if (ac > 256) loud_incompatible_max(*(t_pd *)x, 256, "items"); + if (ac > MINIMUM_C74MAXITEMS) + loud_incompatible_max(*(t_pd *)x, MINIMUM_C74MAXITEMS, "items"); while (ac && av->a_type != A_FLOAT) ac--, av++; /* CHECKME (a warning?) */ if (ac) { |