X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvfm.c;h=6944df2b7d530f287cc5278a3bc392ae47f4fc4f;hb=397e4b99a356c51cab364f14373c15982db14d87;hp=49cd4a4ce7a01bccceeec16635a4a1987611beb7;hpb=2feb80cc7e27079c77255ee8ab6a9aa373980abb;p=pspp diff --git a/src/vfm.c b/src/vfm.c index 49cd4a4ce7..6944df2b7d 100644 --- a/src/vfm.c +++ b/src/vfm.c @@ -14,8 +14,8 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - 02111-1307, USA. */ + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. */ #include #include "vfm.h" @@ -584,7 +584,9 @@ const struct case_sink_class null_sink_class = struct ccase * lagged_case (int n_before) { - assert (n_before >= 1 && n_before <= n_lag); + assert (n_before >= 1 ); + assert (n_before <= n_lag); + if (n_before <= lag_count) { int index = lag_head - n_before;