diff --git a/sais/gsa/gsaca.go b/sais/gsa/gsaca.go index 509e4524d..fe8facdbe 100644 --- a/sais/gsa/gsaca.go +++ b/sais/gsa/gsaca.go @@ -2,7 +2,7 @@ package gsa /* #include "gsacak.h" -#cgo CFLAGS: -DTERMINATOR=0 -DM64=1 -Dm64=1 +#cgo CFLAGS: -DTERMINATOR=0 -DM64=1 -Dm64=1 -std=c99 */ import "C" import ( diff --git a/sais/utils.c b/sais/utils.c index b0058f13c..85cee183f 100644 --- a/sais/utils.c +++ b/sais/utils.c @@ -2,8 +2,7 @@ int lcp_kasai(const unsigned char *T, int *SA, int *LCP, int *FTR, int *INV, int sa_size, int n) { - - for (int i = 0, j = 0; i < sa_size; i++) + for (int i = 0, j = 0;; i < sa_size; i++) { if ((SA[i] & 1) == 0) FTR[j++] = SA[i] >> 1;