aboutsummaryrefslogtreecommitdiff
path: root/src/conversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/conversion.cpp')
-rw-r--r--src/conversion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conversion.cpp b/src/conversion.cpp
index 5f9494f..26f2db2 100644
--- a/src/conversion.cpp
+++ b/src/conversion.cpp
@@ -3,7 +3,7 @@
#include <climits>
#include <stdexcept>
-ConversionResult<unsigned int> str_to_uint(const std::string_view &str)
+ConversionResult<uint32_t> str_to_uint(const std::string_view &str)
{
if (!ctre::match<IS_VALID_UINT>(str))
{
@@ -29,5 +29,5 @@ ConversionResult<unsigned int> str_to_uint(const std::string_view &str)
return ConversionResult(false, 0U, "Out of range");
}
- return ConversionResult(true, static_cast<unsigned int>(num));
+ return ConversionResult(true, static_cast<uint32_t>(num));
}