From: <cde...@us...> - 2010-12-06 18:23:28
|
Revision: 7989 http://octave.svn.sourceforge.net/octave/?rev=7989&view=rev Author: cdemills Date: 2010-12-06 17:45:50 +0000 (Mon, 06 Dec 2010) Log Message: ----------- Modified potentially harmfull temporary var overwriting Modified Paths: -------------- trunk/octave-forge/extra/dataframe/inst/@dataframe/private/df_cow.m Modified: trunk/octave-forge/extra/dataframe/inst/@dataframe/private/df_cow.m =================================================================== --- trunk/octave-forge/extra/dataframe/inst/@dataframe/private/df_cow.m 2010-12-06 16:05:51 UTC (rev 7988) +++ trunk/octave-forge/extra/dataframe/inst/@dataframe/private/df_cow.m 2010-12-06 17:45:50 UTC (rev 7989) @@ -48,13 +48,12 @@ %# duplicate the touched column df._data{col} = horzcat(df._data{col}, \ df._data{col}(:, df._rep{col}(indj))); - if (indi > 1) + if (indi > 1), %# a new column has been created df._rep{col}(indi) = t1; else %# update repetition index aliasing this one - dummy = find(dummy == indi); - df._rep{col}(dummy) = t1; + df._rep{col}(find(dummy == indi)) = t1; endif endfor endfor @@ -68,7 +67,7 @@ endif %# sanity check dummy = sum(cellfun(@length, df._rep)); - if dummy != df._cnt(2), + if (dummy != df._cnt(2)), df._cnt(3) = dummy; endif This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |