aboutsummaryrefslogtreecommitdiff
path: root/src/conversion.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-06 13:29:10 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit0854ebbc0720c1691f2de661c4ce3467b71746c6 (patch)
tree6bede8baea394711056db7109f395e71e880e03d /src/conversion.cpp
parenta285df324deb579d262ea7cf484de4d6b11b28e4 (diff)
refactor: replace unsigned int with uint32_t
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));
}