diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-31 15:27:32 +1100 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-12-31 15:27:32 +1100 |
commit | 7b2ce5155adeea78ce9d9c2d533274d9d0ce2109 (patch) | |
tree | a66ab74330d0aa3ffc0523df8ebad8ee625511a0 /source/core | |
parent | 4903d39eed1af80021e95424731038080ed1c9a3 (diff) |
fix Clang warnings
those two tryLexicalCasts were literally just broken
Diffstat (limited to 'source/core')
-rw-r--r-- | source/core/StarLexicalCast.hpp | 4 | ||||
-rw-r--r-- | source/core/StarNetElementFloatFields.hpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarLexicalCast.hpp b/source/core/StarLexicalCast.hpp index 15afe3f..08dab14 100644 --- a/source/core/StarLexicalCast.hpp +++ b/source/core/StarLexicalCast.hpp @@ -24,12 +24,12 @@ bool tryLexicalCast(bool& result, const char* first, const char* last); template <typename Type> bool tryLexicalCast(Type& result, String const& s) { - return tryLexicalCast<Type>(s.utf8Ptr(), s.utf8Ptr() + s.utf8Size()); + return tryLexicalCast<Type>(result, s.utf8Ptr(), s.utf8Ptr() + s.utf8Size()); } template <typename Type> bool tryLexicalCast(Type& result, StringView s) { - return tryLexicalCast<Type>(s.utf8Ptr(), s.utf8Ptr() + s.utf8Size()); + return tryLexicalCast<Type>(result, s.utf8Ptr(), s.utf8Ptr() + s.utf8Size()); } template <typename Type> diff --git a/source/core/StarNetElementFloatFields.hpp b/source/core/StarNetElementFloatFields.hpp index 6c8fbcf..b8ec28f 100644 --- a/source/core/StarNetElementFloatFields.hpp +++ b/source/core/StarNetElementFloatFields.hpp @@ -165,7 +165,7 @@ bool NetElementFloating<T>::writeNetDelta(DataStream& ds, uint64_t fromVersion, } template <typename T> -void NetElementFloating<T>::readNetDelta(DataStream& ds, float interpolationTime, NetCompatibilityRules rules) { +void NetElementFloating<T>::readNetDelta(DataStream& ds, float interpolationTime, NetCompatibilityRules _rules) { T t = readValue(ds); m_latestUpdateVersion = m_netVersion ? m_netVersion->current() : 0; |