Mercurial > hg > octave-max
changeset 6235:9ff5a6936031
[project @ 2007-01-10 06:35:47 by jwe]
author | jwe |
---|---|
date | Wed, 10 Jan 2007 06:35:47 +0000 |
parents | 48444662e9ae |
children | 1bed9b2c26e0 |
files | src/ChangeLog src/parse.y |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-01-10 John W. Eaton <jwe@octave.org> + + * parse.y (load_fcn_from_file): Only compare last two characters + when looking for ".m". + 2007-01-06 John W. Eaton <jwe@octave.org> * version.h (OCTAVE_CONFIG_STATEMENT): New macro
--- a/src/parse.y +++ b/src/parse.y @@ -3414,7 +3414,7 @@ if (octave_env::absolute_pathname (nm) && ((nm_len > 4 && nm.substr (nm_len-4) == ".oct") || (nm_len > 4 && nm.substr (nm_len-4) == ".mex") - || (nm_len > 2 && nm.substr (nm_len-4) == ".m"))) + || (nm_len > 2 && nm.substr (nm_len-2) == ".m"))) { file = nm; }