Skip to content

Commit

Permalink
Remove duplicating code
Browse files Browse the repository at this point in the history
Using function instead of rewriting the same code
  • Loading branch information
OptionalAssistant committed May 15, 2024
1 parent bbf0ae5 commit a0cf73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zasm/src/zasm/src/core/error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace zasm
// we have to use a different approach.
static ErrorExt* toErrorExt(std::uint64_t data) noexcept
{
assert((data & kErrorExtBit) != 0);
assert(isExtError(data));

auto* ext = reinterpret_cast<ErrorExt*>(data & ~kErrorExtBit);
return ext;
Expand Down

0 comments on commit a0cf73f

Please sign in to comment.