changeset 2090:431257d0cdac

[project @ 1996-04-26 19:34:25 by jwe]
author jwe
date Fri, 26 Apr 1996 19:34:25 +0000
parents 4dcc8b77e84a
children 60f5e1c20815
files src/pt-const.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/pt-const.cc
+++ b/src/pt-const.cc
@@ -2943,6 +2943,12 @@
 	      error ("can't index %s variables", type_as_string ());
 	      break;
 	    }
+
+	  // We may have converted this value from a scalar to a
+	  // matrix to allow indexing to work.
+
+	  if (! error_state)
+	    maybe_mutate ();
 	}
     }