Patch for unsigned vs signed warnings. Thanks to <bruce@cybersight.com>

This commit is contained in:
dp%netscape.com 1999-03-21 19:26:32 +00:00
Родитель e038c62894
Коммит 13372716ec
7 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry {
// ctor/dtor
nsRegistry();
~nsRegistry();
virtual ~nsRegistry();
protected:
HREG mReg; // Registry handle.

Просмотреть файл

@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry {
// ctor/dtor
nsRegistry();
~nsRegistry();
virtual ~nsRegistry();
protected:
HREG mReg; // Registry handle.

Просмотреть файл

@ -186,7 +186,7 @@ void nsHashtable::Reset() {
nsCStringKey::nsCStringKey(const char* str)
: mStr(mBuf)
{
PRInt32 len = PL_strlen(str);
PRUint32 len = PL_strlen(str);
if (len >= sizeof(mBuf)) {
mStr = PL_strdup(str);
NS_ASSERTION(mStr, "out of memory");

Просмотреть файл

@ -58,7 +58,7 @@ nsSupportsArray::operator=(const nsISupportsArray& aOther)
{
PRUint32 otherCount = aOther.Count();
if (otherCount > (PRInt32)mArraySize) {
if (otherCount > mArraySize) {
DeleteArray();
mArraySize = otherCount;
mArray = new nsISupports*[mArraySize];

Просмотреть файл

@ -186,7 +186,7 @@ void nsHashtable::Reset() {
nsCStringKey::nsCStringKey(const char* str)
: mStr(mBuf)
{
PRInt32 len = PL_strlen(str);
PRUint32 len = PL_strlen(str);
if (len >= sizeof(mBuf)) {
mStr = PL_strdup(str);
NS_ASSERTION(mStr, "out of memory");

Просмотреть файл

@ -66,7 +66,7 @@ struct nsRegistry : public nsIRegistry {
// ctor/dtor
nsRegistry();
~nsRegistry();
virtual ~nsRegistry();
protected:
HREG mReg; // Registry handle.

Просмотреть файл

@ -58,7 +58,7 @@ nsSupportsArray::operator=(const nsISupportsArray& aOther)
{
PRUint32 otherCount = aOther.Count();
if (otherCount > (PRInt32)mArraySize) {
if (otherCount > mArraySize) {
DeleteArray();
mArraySize = otherCount;
mArray = new nsISupports*[mArraySize];