From 746a2996c90238fdddfbd282adfa7e5c937b7c9b Mon Sep 17 00:00:00 2001 From: Rémi Verschelde Date: Tue, 2 Feb 2016 20:58:00 +0100 Subject: Fix return value of regexp string test Closes #3556 --- bin/tests/test_string.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/tests/test_string.cpp') diff --git a/bin/tests/test_string.cpp b/bin/tests/test_string.cpp index 60ef1da54..27707b1a0 100644 --- a/bin/tests/test_string.cpp +++ b/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 { -- cgit v1.2.3-70-g09d2