]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix --strict-warnings build
authorPatrick Steuer <patrick.steuer@de.ibm.com>
Thu, 15 Aug 2019 21:13:53 +0000 (23:13 +0200)
committerPatrick Steuer <patrick.steuer@de.ibm.com>
Sat, 9 Nov 2019 19:48:00 +0000 (20:48 +0100)
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)

(cherry picked from commit e0249827b3fa81ff6c59fb14ef85d38361dd5e31)

test/test_test.c

index 0af2eaeb8ad58a640c4b635d0348e552f36370ba..74a230c1966ba1c68de9285d3e83d9d60b549cff 100644 (file)
@@ -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 */