mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 14:56:57 +02:00
fix implicit cast warning for Visual Studio
This commit is contained in:
parent
8bdac589b8
commit
d4c52e4b1c
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ bool ShapeManager::releaseShapeByKey(uint64_t key) {
|
|||
shapeRef->refCount--;
|
||||
if (shapeRef->refCount == 0) {
|
||||
// look for existing entry in _garbageRing
|
||||
int32_t ringSize = _garbageRing.size();
|
||||
int32_t ringSize = (int32_t)(_garbageRing.size());
|
||||
for (int32_t i = 0; i < ringSize; ++i) {
|
||||
int32_t j = (_ringIndex + ringSize) % ringSize;
|
||||
if (_garbageRing[j] == key) {
|
||||
|
@ -110,7 +110,7 @@ bool ShapeManager::releaseShape(const btCollisionShape* shape) {
|
|||
}
|
||||
|
||||
void ShapeManager::collectGarbage() {
|
||||
int numShapes = _garbageRing.size();
|
||||
int numShapes = (int32_t)(_garbageRing.size());
|
||||
for (int i = 0; i < numShapes; ++i) {
|
||||
HashKey key(_garbageRing[i]);
|
||||
ShapeReference* shapeRef = _shapeMap.find(key);
|
||||
|
|
Loading…
Reference in a new issue