Tracker: Fix integer overflow
CID1108329
This commit is contained in:
@@ -224,11 +224,13 @@ public:
|
|||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return error;
|
return error;
|
||||||
|
|
||||||
bigtime_t fileTime = st.st_mtim.tv_sec * 1000000
|
bigtime_t fileTime = st.st_mtim.tv_sec;
|
||||||
+ st.st_mtim.tv_nsec / 1000;
|
fileTime *= 1000000;
|
||||||
|
fileTime += st.st_mtim.tv_nsec / 1000;
|
||||||
if (fileTime == fFileTime) {
|
if (fileTime == fFileTime) {
|
||||||
if (_changed != NULL)
|
if (_changed != NULL)
|
||||||
*_changed = false;
|
*_changed = false;
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user