]> www.ginac.de Git - ginac.git/blobdiff - check/exam_matrices.cpp
[BUGFIX] Fix crash in parser.
[ginac.git] / check / exam_matrices.cpp
index b163386fe4f22b5d3e8af952f16401649637b65d..1d5b081769e2fc53b5bc4333c4d75a012cf173f5 100644 (file)
@@ -4,7 +4,7 @@
  *  Here we examine manipulations on GiNaC's symbolic matrices. */
 
 /*
- *  GiNaC Copyright (C) 1999-2019 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2024 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -367,7 +367,7 @@ static unsigned matrix_misc()
        bool caught = false;
        try {
                m5 = inverse(m4);
-       } catch (std::runtime_error err) {
+       } catch (std::runtime_error &err) {
                caught = true;
        }
        if (!caught) {