Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d045f1b

Browse files
committed
use unsigned in cli_selection_utils.h
1 parent e85fb28 commit d045f1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/utils/cli_selection_utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ inline std::optional<std::string> PrintModelSelection(
8080
// deal with out of range numeric values
8181
std::optional<int> numeric_value = GetNumericValue(selection);
8282

83-
if (!numeric_value.has_value() || (u_int64_t) numeric_value.value() > availables.size() || numeric_value.value() < 1) {
83+
if (!numeric_value.has_value() || (unsigned) numeric_value.value() > availables.size() || numeric_value.value() < 1) {
8484
return std::nullopt;
8585
}
8686

@@ -107,7 +107,7 @@ inline std::optional<std::string> PrintSelection(
107107

108108
// deal with out of range numeric values
109109
std::optional<int> numeric_value = GetNumericValue(selection);
110-
if (!numeric_value.has_value() ||(u_int64_t) numeric_value.value() > options.size() || numeric_value.value() < 1) {
110+
if (!numeric_value.has_value() ||(unsigned) numeric_value.value() > options.size() || numeric_value.value() < 1) {
111111
return std::nullopt;
112112
}
113113

0 commit comments

Comments
 (0)