From 746a2996c90238fdddfbd282adfa7e5c937b7c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= 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(-) diff --git a/bin/tests/test_string.cpp b/bin/tests/test_string.cpp index 60ef1da540..27707b1a00 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