private long testTime = 60 * 24 * 3600 * 1000;
testTime應(yīng)該等于5184000000,但實(shí)際值為889032704,造成了int數(shù)據(jù)溢出。
開發(fā)中要牢記。
開發(fā)中要牢記。
只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問(wèn)
管理
|
||