Bug 449645 - ksimus-0.3.6.2-254.17: overflow in implicit constant conversion
Summary: ksimus-0.3.6.2-254.17: overflow in implicit constant conversion
Status: RESOLVED DUPLICATE of bug 442933
Alias: None
Product: openSUSE 11.1
Classification: openSUSE
Component: KDE3 (show other bugs)
Version: Factory
Hardware: All openSUSE 11.0
: P4 - Low : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-27 10:40 UTC by David Binderman
Modified: 2009-02-05 16:53 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***