Selaa lähdekoodia

Debug postion fin

Loquicom 6 vuotta sitten
vanhempi
sitoutus
dd922fd081
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      expreg.c

+ 1 - 1
expreg.c

@@ -47,7 +47,7 @@ char* get_match_expreg(expreg* er, int* deb, int* fin) {
         *deb = er->pos + start;
     }
     if(fin != NULL){
-        *fin = end;
+        *fin = er->pos + end;
     }
     //Recup la chaine
     char* str;