From: Ken Raeburn Date: Thu, 3 Dec 2009 02:17:20 +0000 (+0000) Subject: Sense of POINTERS_ARE_ALL_THE_SAME test was backwards X-Git-Tag: krb5-1.8-alpha1~97 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=78989785a51de5a0516f67600c41cc3b85a49799;p=krb5.git Sense of POINTERS_ARE_ALL_THE_SAME test was backwards git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23438 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/asn1_encode.c b/src/lib/krb5/asn.1/asn1_encode.c index b73e769db..a32830653 100644 --- a/src/lib/krb5/asn.1/asn1_encode.c +++ b/src/lib/krb5/asn.1/asn1_encode.c @@ -325,11 +325,11 @@ asn1_encode_opaque(asn1buf *buf, unsigned int len, const void *val, */ #ifdef POINTERS_ARE_ALL_THE_SAME -#define LOADPTR(PTR,TYPE) \ - (assert((TYPE)->loadptr != NULL), (TYPE)->loadptr(PTR)) -#else #define LOADPTR(PTR,TYPE) \ (*(const void *const *)(PTR)) +#else +#define LOADPTR(PTR,TYPE) \ + (assert((TYPE)->loadptr != NULL), (TYPE)->loadptr(PTR)) #endif static int