Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
fix warning 0 -> size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
martinus committed Mar 14, 2021
1 parent 1777e88 commit a07dd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/include/robin_hood.h
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ class Table
// unlikely that this evaluates to true
if (ROBIN_HOOD_UNLIKELY(mNumElements >= mMaxNumElementsAllowed)) {
if (!increase_size()) {
return std::make_pair(0, InsertionState::overflow_error);
return std::make_pair(size_t(0), InsertionState::overflow_error);
}
continue;
}
Expand Down

0 comments on commit a07dd77

Please sign in to comment.