Skip to content

Commit

Permalink
Fix warning on comparison of signed and unsigned (Thanks, Clang)
Browse files Browse the repository at this point in the history
  • Loading branch information
SSoelvsten committed Jul 1, 2024
1 parent e3da12c commit 4644ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adiar/internal/data_types/level_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ namespace adiar::internal
using level_type = level_info::level_type;
using signed_level_type = level_info::signed_level_type;

adiar_assert(levels < 0 ? (std::abs(levels) <= li.level())
adiar_assert(levels < 0 ? (static_cast<level_type>(std::abs(levels)) <= li.level())
: (li.level() + levels <= ptr_uint64::max_label));

// TODO: Use dynamic casts instead?
Expand Down

0 comments on commit 4644ef0

Please sign in to comment.