From: Robert Wilhelm (robert@gaston.camelot.de)
Date: Mon Jun 17 2002 - 15:58:53 EDT
In ut_hash.cpp, you can find following function:
const void* UT_StringPtrMap::_prev(UT_Cursor& c) const
{
const hash_slot* map = m_pMapping;
size_t x;
for (x = c._get_index() - 1; x >= 0; --x)
{
if (!map[x].empty() && !map[x].deleted())
{
break;
}
}
[...]
Since size_t is unsigned, x will always be greater or equal 0,
even for --0.
Since UT_Cursor::_get_index() returns an int, I suggest
attached patch.
This archive was generated by hypermail 2.1.4 : Mon Jun 17 2002 - 16:10:59 EDT