Skip to content

Commit 0f9a647

Browse files
committed
fix review
1 parent 1ec46b4 commit 0f9a647

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arby/include/arby/Nat.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include <limits>
2828
#include <string>
2929
#include <stdexcept>
30-
#include <tuple>
30+
#include <utility>
3131

3232
#include "codlili.hpp"
3333

@@ -125,7 +125,7 @@ namespace com::saxbophone::arby {
125125
using OverflowType = PRIVATE::GetStorageType<int>::OverflowType;
126126
// traps with an exception if there are leading zeroes in the digits array
127127
constexpr void _trap_leading_zero() const {
128-
if (_digits.size() > 1 and _digits.front() == 0) {
128+
if (_digits.size() > 0 and _digits.front() == 0) {
129129
throw std::logic_error("leading zeroes in internal representation");
130130
}
131131
}

0 commit comments

Comments
 (0)