From: Ben Pfaff Date: Fri, 9 Jun 2006 19:11:58 +0000 (+0000) Subject: * format.c (measure_is_valid): Really return false when m >= X-Git-Tag: v0.6.0~820 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75862bc63003b33702bfd6844b8a4d1c632488b3;p=pspp-builds.git * format.c (measure_is_valid): Really return false when m >= n_MEASURES. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index aec7b0c8..6538ebf4 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,8 @@ +Fri Jun 9 12:11:24 2006 Ben Pfaff + + * format.c (measure_is_valid): Really return false when m >= + n_MEASURES. + Tue Jun 6 18:46:26 2006 Ben Pfaff Implement random access to casefiles, for use in GUI. diff --git a/src/data/format.c b/src/data/format.c index 7066c053..88b61374 100644 --- a/src/data/format.c +++ b/src/data/format.c @@ -378,7 +378,7 @@ bool measure_is_valid(enum measure m) { if ( m <= 0 ) return false; - if ( m >= n_MEASURES) false; + if ( m >= n_MEASURES) return false; return true; }