fixing c-99 (#579)

* fixing c-99

* using c99 at compile

* back to before

Co-authored-by: Enrique Jose Avila Asapche <enriavil1@Enriques-MacBook-Pro-2.local>
This commit is contained in:
Enrique Jose Avila Asapche 2022-08-13 18:15:35 +03:00 committed by GitHub
parent 27ce06026f
commit 491cdeb434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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 (

View File

@ -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;