My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 7: Overflow of unsigned int leading to wrong o/p.
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  div...@gmail.com
Closed:  Jun 2009
Cc:  joys...@gmail.com, div...@gmail.com


 
Project Member Reported by div...@gmail.com, Jun 12, 2009
What steps will reproduce the problem?
159487 159487 will result in wrong cycle length. Similarly , other numbers 
whose cycle length overflows unsigned bit range would result in wrong 
value.

What is the expected output? What do you see instead?
expected o/p: 182 , o/p obtained: 246

Please use labels and text to provide additional information.


Jun 12, 2009
Project Member #1 div...@gmail.com
Type changed to int and an assert ( k < 0) has been added to detect overflow.UVA 
states no operation will overflow 32 bit int.
Status: Fixed

Powered by Google Project Hosting