Changeset 2402


Ignore:
Timestamp:
Feb 13, 2013, 2:25:57 PM (6 years ago)
Author:
sam
Message:

base: work around an annoying GCC warning we very well know about.

Location:
trunk/src/lol/base
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lol/base/array.h

    r2269 r2402  
    120120         * always use &array[0] to get a pointer to the data. */
    121121        ASSERT(n >= 0);
    122         ASSERT(n < m_count || (!n && !m_count));
     122        ASSERT((unsigned)n < (unsigned)m_count || (!n && !m_count));
    123123        return m_data[n];
    124124    }
  • trunk/src/lol/base/string.h

    r2361 r2402  
    6868         * to access that hidden null character. */
    6969        ASSERT(n >= 0);
    70         ASSERT(n <= Count());
     70        ASSERT((unsigned)n <= (unsigned)Count());
    7171        return ((Super &)*this)[n];
    7272    }
Note: See TracChangeset for help on using the changeset viewer.