summaryrefslogtreecommitdiff
path: root/common/array.cpp
diff options
context:
space:
mode:
authorleo2001-01-07 15:01:51 +0000
committerleo2001-01-07 15:01:51 +0000
commit5e30e9a7197c6b4d233374ca88765d02114d97c3 (patch)
tree420aa6a315a80faf8233e0fafccdbfc9811080cd /common/array.cpp
parentab6d702f49536844ae19f30c884a9b5436e0f927 (diff)
Use signed ints to avoid warnings in the rest of the code
git-svn-id: http://svn.leocad.org/trunk@212 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/array.cpp')
-rwxr-xr-xcommon/array.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/array.cpp b/common/array.cpp
index 95c28bf..f8df023 100755
--- a/common/array.cpp
+++ b/common/array.cpp
@@ -6,7 +6,7 @@
#include <string.h>
template <class T>
-PtrArray<T>::PtrArray (unsigned long nSize)
+PtrArray<T>::PtrArray (int nSize)
{
m_pData = NULL;
m_nLength = 0;
@@ -23,7 +23,7 @@ PtrArray<T>::~PtrArray ()
}
template <class T>
-void PtrArray<T>::Expand (unsigned long nGrow)
+void PtrArray<T>::Expand (int nGrow)
{
if ((m_nLength + nGrow) > m_nAlloc)
{
@@ -34,7 +34,7 @@ void PtrArray<T>::Expand (unsigned long nGrow)
}
template <class T>
-void PtrArray<T>::SetSize (unsigned long nSize)
+void PtrArray<T>::SetSize (int nSize)
{
if (nSize > m_nLength)
Expand (nSize - m_nLength);
@@ -43,7 +43,7 @@ void PtrArray<T>::SetSize (unsigned long nSize)
}
template <class T>
-T* PtrArray<T>::RemoveIndex (unsigned long nIndex)
+T* PtrArray<T>::RemoveIndex (int nIndex)
{
T* ret = NULL;
@@ -65,7 +65,7 @@ T* PtrArray<T>::RemoveIndex (unsigned long nIndex)
template <class T>
T* PtrArray<T>::RemovePointer (T* pObj)
{
- unsigned long i;
+ int i;
for (i = 0; i < m_nLength; i++)
if (m_pData[i] == pObj)