From 27e84c5ffcb770374de14cb09fa08a32c4d58744 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Wed, 11 Oct 2017 00:15:04 +0100 Subject: [PATCH] mpz.h: fix typo in previous commit (found by Nikolaj) --- src/util/mpz.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/mpz.h b/src/util/mpz.h index bdfbc8061..9933e4485 100644 --- a/src/util/mpz.h +++ b/src/util/mpz.h @@ -95,7 +95,7 @@ public: mpz(int v):m_val(v), m_ptr(0) {} mpz():m_val(0), m_ptr(0) {} mpz(mpz && other) noexcept : m_val(other.m_val), m_ptr(0) { - std::swap(m_val, other.m_val); + std::swap(m_ptr, other.m_ptr); } void swap(mpz & other) { std::swap(m_val, other.m_val);