Skip to content

Commit

Permalink
Unsigned comparison warning removal
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Mar 11, 2012
1 parent b5e2976 commit d23737c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/preprocessor/HomogeneousKernelMap.cpp
Expand Up @@ -114,7 +114,7 @@ void CHomogeneousKernelMap::init ()
int tableHeight = 2*m_order + 1 ;
int tableWidth = m_numSubdivisions * (m_maxExponent - m_minExponent + 1);
size_t numElements = (tableHeight * tableWidth + 2*(1+m_order));
if (m_table.vlen != numElements) {
if (unsigned(m_table.vlen) != numElements) {
SG_DEBUG ("reallocating... %d -> %d\n", m_table.vlen, numElements);
m_table.vector = SG_REALLOC (float64_t, m_table.vector, numElements);
m_table.vlen = numElements;
Expand Down

0 comments on commit d23737c

Please sign in to comment.