Fixed unsigned problems.

This commit is contained in:
warren%netscape.com 1999-02-06 03:56:36 +00:00
parent 6649625711
commit b6857edec3
4 changed files with 6 additions and 6 deletions

View File

@ -130,7 +130,7 @@ NS_BASE nsIAtom* NS_NewAtom(const PRUnichar* us)
(PLHashComparator) nsnull,
nsnull, nsnull);
}
PRInt32 uslen;
PRUint32 uslen;
PRUint32 hashCode = nsCRT::HashValue(us, &uslen);
PLHashEntry** hep = PL_HashTableRawLookup(gAtomHashTable, hashCode, us);
PLHashEntry* he = *hep;

View File

@ -158,7 +158,7 @@ nsProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
}
PRUnichar *key = aKey.ToNewUnicode();
PRInt32 len;
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;
@ -191,7 +191,7 @@ NS_IMETHODIMP
nsProperties::GetProperty(const nsString& aKey, nsString& aValue)
{
PRUnichar *key = aKey;
PRInt32 len;
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;

View File

@ -130,7 +130,7 @@ NS_BASE nsIAtom* NS_NewAtom(const PRUnichar* us)
(PLHashComparator) nsnull,
nsnull, nsnull);
}
PRInt32 uslen;
PRUint32 uslen;
PRUint32 hashCode = nsCRT::HashValue(us, &uslen);
PLHashEntry** hep = PL_HashTableRawLookup(gAtomHashTable, hashCode, us);
PLHashEntry* he = *hep;

View File

@ -158,7 +158,7 @@ nsProperties::SetProperty(const nsString& aKey, nsString& aNewValue,
}
PRUnichar *key = aKey.ToNewUnicode();
PRInt32 len;
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;
@ -191,7 +191,7 @@ NS_IMETHODIMP
nsProperties::GetProperty(const nsString& aKey, nsString& aValue)
{
PRUnichar *key = aKey;
PRInt32 len;
PRUint32 len;
PRUint32 hashValue = nsCRT::HashValue(key, &len);
PLHashEntry **hep = PL_HashTableRawLookup(mTable, hashValue, key);
PLHashEntry *he = *hep;