mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Change the positions to be 0-based, instead of 1-based.
This commit is contained in:
@@ -84,7 +84,7 @@ Positions::get_size () const
|
||||
|
||||
/* Write access. */
|
||||
|
||||
INLINE unsigned char *
|
||||
INLINE int *
|
||||
Positions::pointer ()
|
||||
{
|
||||
return _positions;
|
||||
@@ -103,7 +103,7 @@ Positions::sort ()
|
||||
{
|
||||
/* Bubble sort. */
|
||||
bool duplicate_free = true;
|
||||
unsigned char *base = _positions;
|
||||
int *base = _positions;
|
||||
unsigned int len = _size;
|
||||
|
||||
for (unsigned int i = 1; i < len; i++)
|
||||
|
||||
Reference in New Issue
Block a user