浏览代码

Fix return value of regexp string test
Closes #3556

Rémi Verschelde 9 年之前
父节点
当前提交
746a2996c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/tests/test_string.cpp

+ 1 - 1
bin/tests/test_string.cpp

@@ -472,7 +472,7 @@ bool test_26() {
 	{
 		printf("%ls\n", regexp.get_capture(i).c_str());
 	}
-	return res;
+	return (res>=0);
 };
 
 struct test_27_data {