Bug 449645

Summary: ksimus-0.3.6.2-254.17: overflow in implicit constant conversion
Product: [openSUSE] openSUSE 11.1 Reporter: David Binderman <dcb314>
Component: KDE3Assignee: E-mail List <kde-maintainers>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low    
Version: Factory   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description David Binderman 2008-11-27 10:40:22 UTC
I just tried to compile Open Suse Linux factory package ksimus-0.3.6.2-254.17
and the compiler said

/usr/src/packages/BUILD/ksimus-floatingpoint-0.3.6/ksimus-floatingpoint/random.cpp:269: warning: overflow in implicit constant conversion

The source code is

        m_seed->setMaxValue(MAX_SEED);

but

#define MAX_SEED            LONG_MAX

and setMaxValue only accepts an int.

I agree with the compiler. Suggest code rework.
Comment 1 Lubos Lunak 2009-02-05 16:53:15 UTC
.

*** This bug has been marked as a duplicate of bug 442933 ***