Bug 259835

Summary: failed compilation due to too large constant
Product: [Applications] kolf Reporter: Alberto Villa <avilla>
Component: generalAssignee: Stefan Majewsky <majewsky>
Status: RESOLVED FIXED    
Severity: crash CC: kde-games-bugs
Priority: NOR    
Version: 1.9   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed In:
Attachments: add LLU suffix to the constant

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