From: mquinson Date: Wed, 6 Jun 2007 15:30:12 +0000 (+0000) Subject: the matrix may have 0 columns... X-Git-Tag: v3.3~1786 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/63282590b70f29e96c5f0f7d0db30ca48c9e0fa5 the matrix may have 0 columns... git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3574 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/xbt/xbt_str.c b/src/xbt/xbt_str.c index 83deab85e5..7ff082793a 100644 --- a/src/xbt/xbt_str.c +++ b/src/xbt/xbt_str.c @@ -453,6 +453,7 @@ static xbt_matrix_t diff_build_LCS(xbt_dynar_t da, xbt_dynar_t db) { xbt_matrix_t C = xbt_matrix_new(xbt_dynar_length(da),xbt_dynar_length(db), sizeof(int),NULL); int i,j; + /* Compute the LCS */ /* C = array(0..m, 0..n) @@ -471,8 +472,9 @@ static xbt_matrix_t diff_build_LCS(xbt_dynar_t da, xbt_dynar_t db) { for (i=0; i