在 gcc4 時就有問題囉
: so/credit.c:credit_count()
...
while (credit = mread(fd, sizeof(CREDIT)))
{
if (credit->flag == CREDIT_OUT) /* 支出才有記錄用途 */
way[credit->useway] += credit->money;
else
moneyin += credit->money;
}
close(fd);
+ moneyout = 0;
for (fd = 0; fd <= 6; fd++)
moneyout += way[fd];
...
--
▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw>
█▄▄▄▄█ █ ▄▄▄▄▄█ Player: LHD
▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: blog.cs.nctu.edu.tw
☆ 次世代BS2 ☆ 可申請個人板 150MB 相簿 http://pic.bs2.to 交大資訊人 250MB