compute_inverse_suffix_array(): Use r for rank, not i
authorEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 16:34:00 +0000 (10:34 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 2 Jan 2014 16:34:00 +0000 (10:34 -0600)
src/lz_sarray.c

index b880f9c..881c3c6 100644 (file)
@@ -94,10 +94,10 @@ compute_inverse_suffix_array(input_idx_t ISA[restrict],
                             const input_idx_t SA[restrict],
                             input_idx_t n)
 {
-       input_idx_t i;
+       input_idx_t r;
 
-       for (i = 0; i < n; i++)
-               ISA[SA[i]] = i;
+       for (r = 0; r < n; r++)
+               ISA[SA[r]] = r;
 }