Skip to content

Commit

Permalink
use asphr assert
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid220u committed Jun 30, 2022
1 parent 9b01129 commit e89d54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/identifier/base58.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ auto Encode(string_view input) -> string {
carry /= 58;
}

assert(carry == 0);
ASPHR_ASSERT_EQ(carry, 0);
length = i;
input = input.substr(1);
}
Expand Down Expand Up @@ -100,7 +100,7 @@ auto Decode(string_view str) -> asphr::StatusOr<string> {
*it = carry % 256;
carry /= 256;
}
assert(carry == 0);
ASPHR_ASSERT_EQ(carry, 0);
length = i;
str = str.substr(1);
}
Expand Down

0 comments on commit e89d54c

Please sign in to comment.