mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-12-01 08:07:08 +01:00
Update WIP discord and some vendors.
CPR has features disabled and PCRE is fully disabled until updated to new code.
This commit is contained in:
1 parent
e0761bf3b9
commit
9298065cef
1562 files changed
+55070
-76299
No files matched your search
Vendored
+2
-2
@@ -165,7 +165,7 @@ template <uint64_t> uint64_t from_string(const std::string &s)
|
||||
*/
|
||||
template <uint32_t> uint32_t from_string(const std::string &s)
|
||||
{
|
||||
return std::stoul(s, 0, 10);
|
||||
return (uint32_t) std::stoul(s, 0, 10);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -205,7 +205,7 @@ template <typename T> std::string to_hex(T i)
|
||||
template <typename T> std::string leading_zeroes(T i, size_t width)
|
||||
{
|
||||
std::stringstream stream;
|
||||
stream << std::setfill('0') << std::setw(width) << std::dec << i;
|
||||
stream << std::setfill('0') << std::setw((int)width) << std::dec << i;
|
||||
return stream.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user