Log In · Register

 
Zunes fail everywhere, all at once
mipadi
post Dec 31 2008, 07:35 PM
Post #1


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



Heh heh. Zunes are teh fail. devil.gif
 
 
Start new topic
Replies
heyo-captain-jac...
post Jan 2 2009, 11:26 PM
Post #2


/人◕‿‿◕人\
*******

Group: Official Member
Posts: 8,283
Joined: Dec 2007
Member No: 602,927



It was line 263 of the code.
QUOTE
//Calculate current day of the week
dayofweek = GetDayOfWeek(days);

year = ORIGINYEAR;

while (days > 365)
{
if (IsLeapYear(year))
{
if (days > 366)
{
days -= 366;
year += 1;
}
}
else
{
days -= 365;
year += 1;
}
}
 
mipadi
post Jan 3 2009, 01:16 AM
Post #3


Senior Member
******

Group: Administrator
Posts: 2,648
Joined: Apr 2008
Member No: 639,265



QUOTE(9001 @ Jan 2 2009, 11:26 PM) *
It was line 263 of the code.

Wrong line. The offending line is actually the line with the while loop -- while days > 365 doesn't take leap years into account, so the loop goes forever -- hence why the Zunes just froze up.
 

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: