浏览代码

Debug postion fin

Loquicom 6 年之前
父节点
当前提交
dd922fd081
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;