Remove warnings on MSVC

This commit is contained in:
Alexander Bock
2023-04-26 23:51:16 +02:00
parent bba5fe6eaa
commit 6dfd0cd3a8
11 changed files with 23 additions and 21 deletions

View File

@@ -241,8 +241,8 @@ RenderableNodeLine::RenderableNodeLine(const ghoul::Dictionary& dictionary)
}
else {
// Recompute relative values to meters
_startOffset = _startOffset * startNode->boundingSphere();
_endOffset = _endOffset * endNode->boundingSphere();
_startOffset = static_cast<float>(_startOffset * startNode->boundingSphere());
_endOffset = static_cast<float>(_endOffset * endNode->boundingSphere());
}
});
}

View File

@@ -239,7 +239,7 @@ void RenderableTrailTrajectory::update(const UpdateData& data) {
unsigned int stopIndex = std::min(nextIndex, _numberOfVertices);
// Calculate all vertex positions
for (int i = startIndex; i < stopIndex; ++i) {
for (unsigned int i = startIndex; i < stopIndex; ++i) {
const glm::vec3 p = _translation->position({
{},
Time(_start + i * _totalSampleInterval),