# HG changeset patch # User jwe # Date 784261338 0 # Node ID a962376eac748e91df5eb50f7f6817a75bdb5082 # Parent f514646473c7477d4c6a99ee84a76be033c943f8 [project @ 1994-11-08 02:21:29 by jwe] diff --git a/liboctave/CMatrix.cc b/liboctave/CMatrix.cc --- a/liboctave/CMatrix.cc +++ b/liboctave/CMatrix.cc @@ -1529,7 +1529,7 @@ { (*current_liboctave_error_handler) ("nonconformant matrix += operation attempted"); - return ComplexMatrix (); + return *this; } for (int i = 0; i < a.length (); i++) @@ -1547,7 +1547,7 @@ { (*current_liboctave_error_handler) ("nonconformant matrix -= operation attempted"); - return ComplexMatrix (); + return *this; } for (int i = 0; i < a.length (); i++) @@ -1565,7 +1565,7 @@ { (*current_liboctave_error_handler) ("nonconformant matrix += operation attempted"); - return ComplexMatrix (); + return *this; } for (int i = 0; i < a.length (); i++) @@ -1583,7 +1583,7 @@ { (*current_liboctave_error_handler) ("nonconformant matrix -= operation attempted"); - return ComplexMatrix (); + return *this; } for (int i = 0; i < a.length (); i++) diff --git a/liboctave/dColVector.cc b/liboctave/dColVector.cc --- a/liboctave/dColVector.cc +++ b/liboctave/dColVector.cc @@ -201,7 +201,7 @@ { (*current_liboctave_error_handler) ("nonconformant vector += operation attempted"); - return ColumnVector (); + *this; } if (len == 0) @@ -221,7 +221,7 @@ { (*current_liboctave_error_handler) ("nonconformant vector -= operation attempted"); - return ColumnVector (); + return *this; } if (len == 0)