Bug 155329

Summary: 3 * undefined code
Product: [Fedora] Fedora Reporter: David Binderman <dcb314>
Component: kdegamesAssignee: Than Ngo <than>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-04-30 17:27:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Binderman 2005-04-19 08:43:39 UTC
Description of problem:

I just tried to compile kdegames-3.4.0-1 from Redhat
Fedora Core development tree

The compiler said

1.

snake.cpp:53: warning: operation on 'x' may be undefined

The source code is

	*list.at(x) = *list.at(--x);

I agree with the compiler. Suggest code rework.

2.

snake.cpp:71: warning: operation on 'x' may be undefined

Duplicate.

3.

adviseFull.cpp:453: warning: operation on 'dvr' may be undefined

The source code is

	quotient *= ((float)(size-dvr))/++dvr;

More of the same.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Rex Dieter 2007-04-30 17:27:59 UTC
should be reported upstream to bugs.kde.org (if still present in current 3.5.x
release).