From: Christos Zoulas Date: Mon, 1 Oct 2018 23:09:16 +0000 (-0400) Subject: change into hex string constants to avoid overflow warnings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73ff6d6847b1bbabe4ae052a3bde1f37c78aecb4;p=openssl change into hex string constants to avoid overflow warnings Reviewed-by: Richard Levitte Reviewed-by: Viktor Dukhovni --- diff --git a/test/hmactest.c b/test/hmactest.c index 48c531e14d..529670c2c9 100644 --- a/test/hmactest.c +++ b/test/hmactest.c @@ -38,10 +38,8 @@ static struct test_st { "e9139d1e6ee064ef8cf514fc7dc83e86", }, { - { - 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, - 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, - }, 16, "Hi There", 8, + "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", + 16, "Hi There", 8, "9294727a3638bb1c13f48ef8158bfc9d", }, { @@ -49,10 +47,8 @@ static struct test_st { "750c783e6ab0b503eaa86e310a5db738", }, { - { - 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, - 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, - }, 16, { + "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", + 16, { 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd,