X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fcaseproto.c;h=1a40213a537d295f78241a0c35a0594ba3a6262a;hb=18021ef879fa68dbec546155311d6676653cf7c3;hp=1b6827dbc3327847d13e5961ccce224d8c4f1967;hpb=2f10847d456fff212f0b3e602f7d6b57512f4830;p=pspp-builds.git diff --git a/src/data/caseproto.c b/src/data/caseproto.c index 1b6827db..1a40213a 100644 --- a/src/data/caseproto.c +++ b/src/data/caseproto.c @@ -330,7 +330,7 @@ caseproto_refresh_long_string_cache__ (const struct caseproto *proto_) * sizeof *proto->long_strings); n = 0; for (i = 0; i < proto->n_widths; i++) - if (proto->widths[i] >= MIN_LONG_STRING) + if (proto->widths[i] > MAX_SHORT_STRING) proto->long_strings[n++] = i; assert (n == proto->n_long_strings); } @@ -406,6 +406,6 @@ count_long_strings (const struct caseproto *proto, size_t idx, size_t count) n = 0; for (i = 0; i < count; i++) - n += proto->widths[idx + i] >= MIN_LONG_STRING; + n += proto->widths[idx + i] > MAX_SHORT_STRING; return n; }