Browse Source

Fix some warnings

Panagiotis Christopoulos Charitos 4 years ago
parent
commit
ca7435b7ac
3 changed files with 4 additions and 4 deletions
  1. 2 2
      AnKi/Config.h.cmake
  2. 1 1
      AnKi/Util/DynamicArray.inl.h
  3. 1 1
      AnKi/Util/SparseArray.inl.h

+ 2 - 2
AnKi/Config.h.cmake

@@ -196,8 +196,8 @@
 inline int __builtin_ctzll(unsigned long long x)
 inline int __builtin_ctzll(unsigned long long x)
 {
 {
 	unsigned long o;
 	unsigned long o;
-    _BitScanForward64(&o, x);
-    return o;
+	_BitScanForward64(&o, x);
+	return o;
 }
 }
 #endif
 #endif
 
 

+ 1 - 1
AnKi/Util/DynamicArray.inl.h

@@ -53,7 +53,7 @@ void DynamicArray<T, TSize>::resizeStorage(TAllocator alloc, Size newSize)
 		ANKI_ASSERT(m_data);
 		ANKI_ASSERT(m_data);
 
 
 		// Delete remaining stuff
 		// Delete remaining stuff
-		for(U i = newSize; i < m_size; ++i)
+		for(Size i = newSize; i < m_size; ++i)
 		{
 		{
 			m_data[i].~T();
 			m_data[i].~T();
 		}
 		}

+ 1 - 1
AnKi/Util/SparseArray.inl.h

@@ -274,7 +274,7 @@ void SparseArray<T, TIndex>::validate() const
 
 
 	// Start iterating
 	// Start iterating
 	U elementCount = 0;
 	U elementCount = 0;
-	U count = m_capacity;
+	Index count = m_capacity;
 	Index pos = startPos;
 	Index pos = startPos;
 	Index prevPos = ~Index(0);
 	Index prevPos = ~Index(0);
 	while(count--)
 	while(count--)