diff --git a/xpcom/glue/nsVoidArray.cpp b/xpcom/glue/nsVoidArray.cpp index 0d8f14f58c5..19ef838707a 100644 --- a/xpcom/glue/nsVoidArray.cpp +++ b/xpcom/glue/nsVoidArray.cpp @@ -221,7 +221,7 @@ PRBool nsVoidArray::SizeTo(PRInt32 aSize) return PR_TRUE; } - if (aSize < oldsize) { + if ((PRUint32) aSize < oldsize) { // No point in allocating if it won't free the current Impl anyway. return PR_TRUE; }