From aa43fb61a4dce5805c98ae76b8e8ebf6f8fa34e6 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Thu, 25 Feb 1999 17:26:22 +0000 Subject: [PATCH] fix for BSD/OS 3.1 git-svn-id: svn://10.0.0.236/trunk@21912 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/components/nsRepository.cpp | 7 +++++-- mozilla/xpcom/src/nsRepository.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/mozilla/xpcom/components/nsRepository.cpp b/mozilla/xpcom/components/nsRepository.cpp index 6218f37d615..f2987735e77 100644 --- a/mozilla/xpcom/components/nsRepository.cpp +++ b/mozilla/xpcom/components/nsRepository.cpp @@ -285,11 +285,14 @@ static nsresult platformMarkNoComponents(nsDll *dll) } PRTime lastModTime = dll->GetLastModifiedTime(); - PRUint64 fileSize = dll->GetSize(); + PRUint32 fileSize32 = dll->GetSize(); + PRUint64 fileSize64; + LL_UI2L(filesize64, filesize32); + NR_RegSetEntry(hreg, key, "LastModTimeStamp", REGTYPE_ENTRY_BYTES, &lastModTime, sizeof(lastModTime)); NR_RegSetEntry(hreg, key, "FileSize", REGTYPE_ENTRY_BYTES, - &fileSize, sizeof(fileSize)); + &fileSize64, sizeof(fileSize64)); char *ncomponentsString = "0"; diff --git a/mozilla/xpcom/src/nsRepository.cpp b/mozilla/xpcom/src/nsRepository.cpp index 6218f37d615..f2987735e77 100644 --- a/mozilla/xpcom/src/nsRepository.cpp +++ b/mozilla/xpcom/src/nsRepository.cpp @@ -285,11 +285,14 @@ static nsresult platformMarkNoComponents(nsDll *dll) } PRTime lastModTime = dll->GetLastModifiedTime(); - PRUint64 fileSize = dll->GetSize(); + PRUint32 fileSize32 = dll->GetSize(); + PRUint64 fileSize64; + LL_UI2L(filesize64, filesize32); + NR_RegSetEntry(hreg, key, "LastModTimeStamp", REGTYPE_ENTRY_BYTES, &lastModTime, sizeof(lastModTime)); NR_RegSetEntry(hreg, key, "FileSize", REGTYPE_ENTRY_BYTES, - &fileSize, sizeof(fileSize)); + &fileSize64, sizeof(fileSize64)); char *ncomponentsString = "0";