diff options
author | Richard Braun <rbraun@sceen.net> | 2017-01-23 18:44:16 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-01-23 18:44:16 +0100 |
commit | d6d8afda9e32501063cee907b20507d4762a3bc0 (patch) | |
tree | b7ce0e4ebb80318279f3e59d6ea8252d81743d55 /mtxmatrix.cc | |
parent | 0335271456550084988c5484bd1109a0a846669b (diff) |
- Fix errors with modern compilers (gcc, clang)
- Upgrade gtkmm dependency
- Add a test.mtx file
- Build with 64-bits words by default
Diffstat (limited to 'mtxmatrix.cc')
-rw-r--r-- | mtxmatrix.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mtxmatrix.cc b/mtxmatrix.cc index ab23d69..43eb703 100644 --- a/mtxmatrix.cc +++ b/mtxmatrix.cc @@ -18,8 +18,8 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include <string> -#include <stdio.h> +#include <cstdio> +#include <cstring> #include <iostream> #include "mtxmatrix.h" @@ -646,7 +646,7 @@ MtxMatrix::toString(bool float_string) const MtxRational *rational; rational = rationals; - memset(columns_lengths, 0, sizeof(columns_lengths)); + std::memset(columns_lengths, 0, sizeof(columns_lengths)); for (i = 0; i < rows; i++) for (j = 0; j < columns; j++) |