aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-29 11:12:25 +0200
committerStefan Boberg <[email protected]>2021-09-29 11:12:25 +0200
commit4a477d0d249edc7be260dfc3f555938747bf9601 (patch)
tree436a2fcf9915c696f766f2b505711230a676c7bb /zencore/include
parentRemoved IsPointerToStack() (diff)
downloadzen-4a477d0d249edc7be260dfc3f555938747bf9601.tar.xz
zen-4a477d0d249edc7be260dfc3f555938747bf9601.zip
string: Fixed some clang warnings
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/string.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/zencore/include/zencore/string.h b/zencore/include/zencore/string.h
index 2c0d10577..c205b199d 100644
--- a/zencore/include/zencore/string.h
+++ b/zencore/include/zencore/string.h
@@ -219,7 +219,7 @@ public:
return AppendRange(String.data(), String.data() + String.size());
}
- inline void RemoveSuffix(int32_t Count)
+ inline void RemoveSuffix(uint32_t Count)
{
ZEN_ASSERT(Count <= Size());
m_CurPos -= Count;
@@ -717,7 +717,7 @@ public:
template<typename CharType>
constexpr inline bool Contains(CharType Char) const
{
- using UnsignedCharType = std::make_unsigned<CharType>::type;
+ using UnsignedCharType = typename std::make_unsigned<CharType>::type;
return !!TestImpl((UnsignedCharType)Char);
}
@@ -726,7 +726,7 @@ public:
template<typename CharType>
constexpr inline uint64_t Test(CharType Char) const
{
- using UnsignedCharType = std::make_unsigned<CharType>::type;
+ using UnsignedCharType = typename std::make_unsigned<CharType>::type;
return TestImpl((UnsignedCharType)Char);
}
@@ -734,7 +734,7 @@ public:
/** Create new set with specified character in it */
constexpr inline AsciiSet operator+(char Char) const
{
- using UnsignedCharType = std::make_unsigned<char>::type;
+ using UnsignedCharType = typename std::make_unsigned<char>::type;
InitData Bitset = {LoMask, HiMask};
SetImpl(Bitset, (UnsignedCharType)Char);
@@ -960,7 +960,7 @@ private:
template<typename CharType, int N>
static constexpr InitData StringToBitset(const CharType (&Chars)[N])
{
- using UnsignedCharType = std::make_unsigned<CharType>::type;
+ using UnsignedCharType = typename std::make_unsigned<CharType>::type;
InitData Bitset = {0, 0};
for (int I = 0; I < N - 1; ++I)