瀏覽代碼

GLTF2: Fix signed/unsigned warning

Turo Lamminen 7 年之前
父節點
當前提交
f470b8466f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/glTF2Asset.inl

+ 1 - 1
code/glTF2Asset.inl

@@ -204,7 +204,7 @@ unsigned int LazyDict<T>::Remove(const char* id)
         throw DeadlyExportError("GLTF: Object with id \"" + std::string(id) + "\" is not found");
         throw DeadlyExportError("GLTF: Object with id \"" + std::string(id) + "\" is not found");
     }
     }
 
 
-    const int index = it->second;
+    const unsigned int index = it->second;
 
 
     mAsset.mUsedIds[id] = false;
     mAsset.mUsedIds[id] = false;
     mObjsById.erase(id);
     mObjsById.erase(id);