diff options
| author | 2019-01-26 18:32:16 -0500 | |
|---|---|---|
| committer | 2019-01-26 18:32:16 -0500 | |
| commit | 212f26f75973b840d400f4d57fe227a98de89981 (patch) | |
| tree | 4ed3576f95e2fb3237a05b759712937f662b58d4 /src | |
| parent | 32b0442c732dff5f062abf895db4d74b8feedcc7 (diff) | |
Fix clang build (nw)
- src/lib/netlist/solver/mat_cr.h:143:32: error: call to 'abs' is ambiguous
- src/lib/netlist/solver/nld_ms_direct.h:62:19: error: non-type template argument evaluates to 18446744073709551488, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/netlist/solver/mat_cr.h | 1 | ||||
| -rw-r--r-- | src/lib/netlist/solver/nld_ms_direct.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/netlist/solver/mat_cr.h b/src/lib/netlist/solver/mat_cr.h index 57e7fafdac3..0116742c3ab 100644 --- a/src/lib/netlist/solver/mat_cr.h +++ b/src/lib/netlist/solver/mat_cr.h @@ -15,6 +15,7 @@ #include <array> #include <vector> #include <cmath> +#include <cstdlib> #include "../plib/pconfig.h" #include "../plib/palloc.h" diff --git a/src/lib/netlist/solver/nld_ms_direct.h b/src/lib/netlist/solver/nld_ms_direct.h index 2c56e9fecb4..1e07ba90e99 100644 --- a/src/lib/netlist/solver/nld_ms_direct.h +++ b/src/lib/netlist/solver/nld_ms_direct.h @@ -59,7 +59,7 @@ private: const std::size_t m_dim; const std::size_t m_pitch; - plib::parray<FT, SIZE * m_pitch_ABS> m_A; + plib::parray<FT, SIZE * int(m_pitch_ABS)> m_A; }; |
