X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fvar-sheet.c;h=76065949829564e7e6ef4c39ca5267864e5d7e40;hb=2e5ba1599578af2f13aa483db3ee49d591aed42f;hp=e04d48955d571f3edec16d54e858b6c11f8fca23;hpb=573068f2bdcd3f8796e9646668fed910a90f890b;p=pspp-builds.git diff --git a/src/ui/gui/var-sheet.c b/src/ui/gui/var-sheet.c index e04d4895..76065949 100644 --- a/src/ui/gui/var-sheet.c +++ b/src/ui/gui/var-sheet.c @@ -30,7 +30,9 @@ #include #include -#define min(A,B) ((A < B)?A:B) +#include + +#include #include #include @@ -366,11 +368,11 @@ var_sheet_cell_change_entry (GtkSheet * sheet, gint row, gint column, { case COL_WIDTH: r_min = fmt->d + 1; - r_max = (psppire_variable_get_type(pv) == ALPHA) ? 255 : 40; + r_max = (psppire_variable_get_type(pv) == ALPHA) ? MAX_STRING : 40; break; case COL_DECIMALS: r_min = 0 ; - r_max = min(fmt->w - 1, 16); + r_max = MIN(fmt->w - 1, 16); break; case COL_COLUMNS: r_min = 1;