diff options
author | Patrick Steuer <patrick.steuer@de.ibm.com> | 2019-08-15 23:13:53 +0200 |
---|---|---|
committer | Patrick Steuer <patrick.steuer@de.ibm.com> | 2019-08-18 21:45:16 +0200 |
commit | e0249827b3fa81ff6c59fb14ef85d38361dd5e31 (patch) | |
tree | 6c7252687a0b44657961be57b44e1d05e06380c9 /test | |
parent | 3ce46435e6ebed69bec0fa3454cc195ced426d42 (diff) |
Fix --strict-warnings build
Appease -Wstring-plus-int.
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9608)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_test.c b/test/test_test.c index ba66a158ad..35c612726f 100644 --- a/test/test_test.c +++ b/test/test_test.c @@ -491,7 +491,7 @@ static int test_single_eval(void) && TEST_ptr_eq(p, buf + 1) && TEST_ptr_null(p = NULL) /* strings */ - && TEST_str_eq(p = "123456" + 1, "23456") + && TEST_str_eq(p = &("123456"[1]), "23456") && TEST_str_eq("3456", ++p) && TEST_str_ne(p++, "456") /* memory */ |