pdf-devel
[Top][All Lists]
Advanced

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

Re: [pdf-devel] Assigning a 64-bit value to pdf_i64_t


From: gerel
Subject: Re: [pdf-devel] Assigning a 64-bit value to pdf_i64_t
Date: Tue, 25 Nov 2008 05:19:28 -0800 (PST)

 > Date: Tue, 25 Nov 2008 10:45:32 +0100
 > From: Aleksander Morgado <address@hidden>
 > 
 > >  > After applying your patch I am getting lots of compilation warnings
 > >  > like:
 > >  > 
 > >  > base/types/pdf-i64-new.c: In function 'pdf_i64_new_001':
 > >  > base/types/pdf-i64-new.c:53: warning: integer constant is too large for 
 > > 'long' type
 > >  > 
 > > 
 > > Hi jemarch, I have a similar list of warnings that I have been getting in 
 > > the
 > > last 2 months or so, I reported it and IIRC no one replied :-/.
 > > I guess the patch you mention is not the problem really, it's to be 
 > > something
 > > else.
 > > Warnings :
 > > ##
 > > base/types/pdf-i64-new.c: In function 'pdf_i64_new_001':
 > > base/types/pdf-i64-new.c:53: warning: integer constant is too large for 
 > > 'long' type
 > > base/types/pdf-i64-assign.c: In function 'pdf_i64_assign_001':
 > > base/types/pdf-i64-assign.c:57: warning: integer constant is too large for 
 > > 'long' type
 > > base/types/pdf-i64-copy.c: In function 'pdf_i64_copy_001':
 > > base/types/pdf-i64-copy.c:60: warning: integer constant is too large for 
 > > 'long' type
 > > base/types/pdf-i64-add.c: In function 'pdf_i64_add_001':
 > > base/types/pdf-i64-add.c:62: warning: integer constant is too large for 
 > > 'long' type
 > > ###
 > > 
 > 
 > I do not have such warnings in my compilation, with gcc 4.3.2. Which is
 > your version of gcc? It seems that a proper cast to int from long can be
 > the solution.

Hi Aleks, my version is 4.1.2, could be that really ?

regards,
-gerel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]