GCC 2.95.2 from IRIX 6.5 -mabi=64 compiler bug workaround:-(
authorAndy Polyakov <appro@openssl.org>
Mon, 5 Jun 2000 14:39:47 +0000 (14:39 +0000)
committerAndy Polyakov <appro@openssl.org>
Mon, 5 Jun 2000 14:39:47 +0000 (14:39 +0000)
Submitted by:
Reviewed by:
PR:

crypto/bf/bftest.c

index 5695250..cf67cad 100644 (file)
@@ -442,7 +442,8 @@ static int test(void)
                {
                BF_set_key(&key,n,key_test);
                BF_ecb_encrypt(key_data,out,&key,BF_ENCRYPT);
-               if (memcmp(out,&(key_out[n-1][0]),8) != 0)
+               /* mips-sgi-irix6.5-gcc  vv  -mabi=64 bug workaround */
+               if (memcmp(out,&(key_out[i=n-1][0]),8) != 0)
                        {
                        printf("blowfish setkey error\n");
                        err=1;