From 46df6c9b5b2f20a759d09f021a10338e901e6b6d Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Tue, 9 May 2000 19:59:06 +0000 Subject: [PATCH] Mac needs special LONG LONG support. git-svn-id: svn://10.0.0.236/trunk@68871 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libjar/nsJAR.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mozilla/modules/libjar/nsJAR.cpp b/mozilla/modules/libjar/nsJAR.cpp index d3dd2871a7a..9c3d4e40649 100644 --- a/mozilla/modules/libjar/nsJAR.cpp +++ b/mozilla/modules/libjar/nsJAR.cpp @@ -798,8 +798,14 @@ nsJAR::RestoreModTime(nsZipItem *aItem, nsIFile *aExtractedFile) if (timestr) { if (PR_SUCCESS == PR_ParseTimeString(timestr, PR_FALSE, &prtime)) + { + PRTime conversion = LL_ZERO; + PRTime newTime = LL_ZERO; + LL_I2L(conversion, PR_USEC_PER_SEC); + LL_DIV(newTime, prtime, conversion); // nsIFile needs usecs. - rv = aExtractedFile->SetLastModificationDate(prtime / PR_USEC_PER_MSEC); + rv = aExtractedFile->SetLastModificationDate(newTime); + } JAR_NULLFREE(timestr); }