From: tb Date: Sun, 26 Dec 2021 15:20:21 +0000 (+0000) Subject: Drop pointless cast in i2d_ASN1_BOOLEAN(). This may or may not fix X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2edf8b822e90f1030c38b5876c89cbb49f8e8e0c;p=openbsd Drop pointless cast in i2d_ASN1_BOOLEAN(). This may or may not fix a weird coverity warning. CID 345121 ok jsing --- diff --git a/lib/libcrypto/asn1/tasn_typ.c b/lib/libcrypto/asn1/tasn_typ.c index d35913b46e3..c373f349152 100644 --- a/lib/libcrypto/asn1/tasn_typ.c +++ b/lib/libcrypto/asn1/tasn_typ.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tasn_typ.c,v 1.16 2021/12/25 08:52:44 jsing Exp $ */ +/* $OpenBSD: tasn_typ.c,v 1.17 2021/12/26 15:20:21 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -555,7 +555,7 @@ const ASN1_ITEM ASN1_BOOLEAN_it = { int i2d_ASN1_BOOLEAN(int a, unsigned char **out) { - return ASN1_item_ex_i2d((ASN1_VALUE **)(long *)(&a), out, + return ASN1_item_ex_i2d((ASN1_VALUE **)&a, out, &ASN1_BOOLEAN_it, -1, 0); }