mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
Fix clang warnings
This commit is contained in:
committed by
Vinnie Falco
parent
8eddcfd3d5
commit
bb02112752
@@ -343,9 +343,9 @@ public:
|
||||
const beast_wchar c = src.getAndAdvance();
|
||||
const size_t bytesNeeded = DestCharPointerType::getBytesRequiredFor (c);
|
||||
|
||||
maxBytes -= bytesNeeded;
|
||||
if (c == 0 || maxBytes < 0)
|
||||
if (c == 0 || maxBytes < bytesNeeded)
|
||||
break;
|
||||
maxBytes -= bytesNeeded;
|
||||
|
||||
dest.write (c);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user