Fixed a small error where two variables had the same name.

This commit is contained in:
Jef Driesen 2008-06-20 13:22:33 +00:00
parent d629e02ca2
commit 1a1807a4cc

View File

@ -28,8 +28,8 @@ suunto_common_extract_dives (const unsigned char data[], unsigned int begin, uns
// Check for an end of dive marker (of the next dive),
// to find the start of the current dive.
unsigned int peek = ringbuffer_decrement (current, peek, begin, end);
if (data[peek] == 0x80) {
unsigned int index = ringbuffer_decrement (current, peek, begin, end);
if (data[index] == 0x80) {
unsigned int len = ringbuffer_distance (current, previous, begin, end);
if (current + len > end) {
unsigned int a = end - current;