Bug 259835 - failed compilation due to too large constant
Summary: failed compilation due to too large constant
Status: RESOLVED FIXED
Alias: None
Product: kolf
Classification: Applications
Component: general (show other bugs)
Version: 1.9
Platform: FreeBSD Ports FreeBSD
: NOR crash
Target Milestone: ---
Assignee: Stefan Majewsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 13:50 UTC by Alberto Villa
Modified: 2010-12-15 21:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
add LLU suffix to the constant (627 bytes, patch)
2010-12-14 13:50 UTC, Alberto Villa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Villa 2010-12-14 13:50:18 UTC
Created attachment 54546 [details]
add LLU suffix to the constant

Version:           1.9 (using KDE 4.5.85) 
OS:                FreeBSD

gcc 4.2 (the default in freebsd) refuses to build kolf due to a too large integer constant

the attached patch suffixes the constant with LLU to make the compiler handle it. tested with 32 and 64 bit

Reproducible: Always

Steps to Reproduce:
just build kolf from kde 4.6 beta 2 with gcc 4.2

Actual Results:  
error: integer constant is too large for "long" type
Comment 1 Stefan Majewsky 2010-12-15 21:11:41 UTC
SVN commit 1206773 by majewsky:

Fix compilation on GCC 4.2.

Patch by Alberto Villa.
BUG: 259835

 M  +1 -1      b2Math.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1206773