Browse Source

Merge pull request #3558 from akien-mga/pr-regex-test

Fix return value of regexp string test
Rémi Verschelde 9 years ago
parent
commit
84b2aa5a62
1 changed files with 1 additions and 1 deletions
  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 {