Sense of POINTERS_ARE_ALL_THE_SAME test was backwards
authorKen Raeburn <raeburn@mit.edu>
Thu, 3 Dec 2009 02:17:20 +0000 (02:17 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 3 Dec 2009 02:17:20 +0000 (02:17 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23438 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/asn1_encode.c

index b73e769db00569672a0840dad576fd2488e7efa3..a328306532cf447377ff0568e8b1bf8aea7f47ec 100644 (file)
@@ -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