Explorar o código

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

Fix return value of regexp string test
Rémi Verschelde %!s(int64=9) %!d(string=hai) anos
pai
achega
84b2aa5a62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {