[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rpms/amaya/devel amaya-9.1-64bits.patch, 1.1, 1.2 amaya.spec, 1.14, 1.15



On Sun, 12 Jun 2005 09:55:58 -0400, Aurelien Bompard wrote:

> Author: abompard
> 
> Update of /cvs/extras/rpms/amaya/devel
> In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3289
> 
> Modified Files:
> 	amaya-9.1-64bits.patch amaya.spec 
> Log Message:
> - patch one more file for the x86_64 problem
> 
> amaya-9.1-64bits.patch:
> 
> Index: amaya-9.1-64bits.patch
> ===================================================================
> RCS file: /cvs/extras/rpms/amaya/devel/amaya-9.1-64bits.patch,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -r1.1 -r1.2
> --- amaya-9.1-64bits.patch	12 Jun 2005 11:57:13 -0000	1.1
> +++ amaya-9.1-64bits.patch	12 Jun 2005 13:55:56 -0000	1.2
> @@ -1,5 +1,16 @@
> ---- .Amaya//thotlib/base/fileaccess.c.64bits	2005-06-12 11:27:39.000000000 +0200
> -+++ ./Amaya/thotlib/base/fileaccess.c	2005-06-12 11:29:27.000000000 +0200
> +--- ./Amaya/thotlib/base/structlist.c.64bits	2005-06-12 15:20:05.000000000 +0200
> ++++ ./Amaya/thotlib/base/structlist.c	2005-06-12 15:20:20.000000000 +0200
> +@@ -509,7 +509,7 @@
> + 	    fprintf (fileDescriptor, " Name=NULL");
> + 	  else
> + 	    fprintf (fileDescriptor, "(%s %x)", pNode->ElStructSchema->SsName,
> +-		     (unsigned int)pNode->ElStructSchema);
> ++		     (unsigned long)pNode->ElStructSchema);
> + 	}

Fully correct would be to insert an 'l' length specifier into fprintf
format string,

    fprintf (fileDescriptor, "(%s %lx)", pNode->ElStructSchema->SsName,

as else you would lose the upper 32 bits of the long integer.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]