Explorar o código

Debug postion fin

Loquicom %!s(int64=6) %!d(string=hai) anos
pai
achega
dd922fd081
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;