mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-01 00:31:21 +00:00
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:
parent
27ce06026f
commit
491cdeb434
@ -2,7 +2,7 @@ package gsa
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
#include "gsacak.h"
|
#include "gsacak.h"
|
||||||
#cgo CFLAGS: -DTERMINATOR=0 -DM64=1 -Dm64=1
|
#cgo CFLAGS: -DTERMINATOR=0 -DM64=1 -Dm64=1 -std=c99
|
||||||
*/
|
*/
|
||||||
import "C"
|
import "C"
|
||||||
import (
|
import (
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
int lcp_kasai(const unsigned char *T, int *SA, int *LCP, int *FTR, int *INV, int sa_size, int n)
|
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)
|
if ((SA[i] & 1) == 0)
|
||||||
FTR[j++] = SA[i] >> 1;
|
FTR[j++] = SA[i] >> 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user