From 504b88785196d5a0e2a3d7382ca2ec6dc7b2e51f Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Wed, 3 Jun 2020 14:14:43 -0600 Subject: [PATCH] fix NetBSD warnings in ASN1_INTEGER_set() tests around int max/min --- tests/api.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/api.c b/tests/api.c index 0e9a59e5e..bdf7c0104 100644 --- a/tests/api.c +++ b/tests/api.c @@ -31034,16 +31034,16 @@ static void test_wolfSSL_ASN1_INTEGER_set() wolfSSL_ASN1_INTEGER_free(a); #ifndef TIME_T_NOT_64BIT - /* 2147483648 */ + /* int max (2147483647) */ a = wolfSSL_ASN1_INTEGER_new(); - val = 2147483648; + val = 2147483647; ret = ASN1_INTEGER_set(a, val); AssertIntEQ(ret, 1); wolfSSL_ASN1_INTEGER_free(a); - /* -2147483648 */ + /* int min (-2147483648) */ a = wolfSSL_ASN1_INTEGER_new(); - val = -2147483648; + val = -2147483647 - 1; ret = ASN1_INTEGER_set(a, val); AssertIntEQ(a->negative, 1); AssertIntEQ(ret, 1);