Pārlūkot izejas kodu

Fix return value of regexp string test
Closes #3556

Rémi Verschelde 9 gadi atpakaļ
vecāks
revīzija
746a2996c9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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 {