diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.clang-tidy | 1 | ||||
-rw-r--r-- | test/test_hilbert.cpp | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy index 77149fb..f0d389e 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -7,6 +7,5 @@ Checks: > -cppcoreguidelines-pro-bounds-array-to-pointer-decay, -hicpp-no-array-decay, -llvm-header-guard, - -performance-no-automatic-move, -readability-identifier-length, InheritParentConfig: true diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index 1ed6f8c..8aacd96 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -69,7 +69,8 @@ to_big_int(const T& vec) mpz_t ia; mpz_init(ia); mpz_import(ia, vec.num_racks(), -1, sizeof(Rack), 0, 0, vec.data()); - const mpz_class num(ia); + + mpz_class num{ia}; mpz_clear(ia); return num; } |