mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-13 07:21:08 -06:00
Removing warnings
This commit is contained in:
@@ -39,8 +39,9 @@ SyncBuffer::~SyncBuffer() {} // NOLINT
|
||||
void SyncBuffer::encode(const std::string& s) {
|
||||
ZoneScoped
|
||||
|
||||
int32_t anticpatedBufferSize = _encodeOffset + (sizeof(char) * s.size())
|
||||
+ sizeof(int32_t);
|
||||
int32_t anticpatedBufferSize = static_cast<int32_t>(
|
||||
_encodeOffset + (sizeof(char) * s.size()) + sizeof(int32_t)
|
||||
);
|
||||
if (anticpatedBufferSize >= _n) {
|
||||
_dataStream.resize(anticpatedBufferSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user