From: Ben Pfaff Date: Fri, 9 Jan 2009 05:36:23 +0000 (-0800) Subject: Fix assertion in case_copy(). X-Git-Tag: v0.7.1~12 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c5ebb0aaa6c55c658120c3787ade5e13d27fc05;p=pspp-builds.git Fix assertion in case_copy(). This is an apparent cut-and-paste error. --- diff --git a/src/data/case.c b/src/data/case.c index 8ae98900..4432579e 100644 --- a/src/data/case.c +++ b/src/data/case.c @@ -123,7 +123,7 @@ case_copy (struct ccase *dst, size_t dst_idx, { assert (!case_is_shared (dst)); assert (range_is_valid (dst, dst_idx, n_values)); - assert (range_is_valid (src, dst_idx, n_values)); + assert (range_is_valid (src, src_idx, n_values)); if (dst != src || dst_idx != src_idx) memmove (dst->values + dst_idx, src->values + src_idx,