mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpiutil] Fix MSVC warning in parse_integer (#7082)
``` warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data ```
This commit is contained in:
@@ -680,7 +680,7 @@ inline std::optional<T> parse_integer(std::string_view str,
|
||||
static_cast<Int>(static_cast<T>(val)) != val) {
|
||||
return std::nullopt;
|
||||
}
|
||||
return val;
|
||||
return static_cast<T>(val);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user