loop parameter must be signed in case batch_size is 0.

This commit is contained in:
nvt-se 2008-11-17 10:34:57 +00:00
parent 5fc9534188
commit 25a73a43dc

View file

@ -535,8 +535,8 @@ get_record_index(coffee_page_t log_page, uint16_t record_count,
unsigned long base; unsigned long base;
uint16_t indices[record_count]; uint16_t indices[record_count];
uint16_t processed; uint16_t processed;
uint16_t batch_size, i; uint16_t batch_size;
int16_t match_index; int16_t match_index, i;
base = ABS_OFFSET(log_page, sizeof(indices[0]) * search_records); base = ABS_OFFSET(log_page, sizeof(indices[0]) * search_records);
processed = 0; processed = 0;