[PATCH] Test process failed on IRIX

Daichi Kawahata daichi.k at aioros.ocn.ne.jp
Wed Feb 9 10:23:54 CET 2005


Hi all,

I've been using gpg since 1.2.6 on IRIX 6.5, recently I've upgraded
1.4.0. Build process was no problem, but some tests failed.

So, I enabled some warning switch (-W -Wall -Wformat=2) with GCC
3.4.3, found there are some warnings (almost) concerned with signed
vs. unsigned comparison though. This patch will fix these warnings,
however I don't know the following:

diff -ru gnupg-1.4.0.orig/mpi/mpi-scan.c gnupg-1.4.0/mpi/mpi-scan.c
--- gnupg-1.4.0.orig/mpi/mpi-scan.c     2003-05-25 02:54:56.000000000 +0900
+++ gnupg-1.4.0/mpi/mpi-scan.c  2005-02-09 14:12:44.797195051 +0900
@@ -78,21 +78,21 @@ 
                    limb = (limb & 0x00ffffff) | (c<<24);
 #elif BYTES_PER_MPI_LIMB == 8
                if( j == 0 )
-                   limb = (limb & 0xffffffffffffff00) | c;
+                   limb = (limb & 0xffffffffffffff00ULL) | c;
                else if( j == 1 )

works on other platforms, seems 'ULL' is GCC extension. Anyway,
'make check' process succeeded on IRIX after modifying.

PS. I've read past ML log, it seems there is announce of 1.4.1.
If this patch is useless, I'll install 1.4.1. ...well any idea?

Thank you.
-- 
Daichi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: warning_clean.diff.bz2
Type: application/octet-stream
Size: 12797 bytes
Desc: not available
Url : /pipermail/attachments/20050209/02b7cb3f/warning_clean.diff-0001.obj


More information about the Gnupg-devel mailing list