Project

General

Profile

Revision 108

Fixed several bugs in the token ring.

View differences:

wl_token_ring.c
752 752
		i++;
753 753
	if (i == sensor_matrix_get_size(sensorMatrix))
754 754
		i = -1;
755
	iteratorCount = i;
755 756
}
756 757

  
757 758
/**
......
765 766
 **/
766 767
int wl_token_iterator_has_next(void)
767 768
{
768
	return iteratorCount == -1;
769
	return iteratorCount != -1;
769 770
}
770 771

  
771 772
/**

Also available in: Unified diff