Bug 339310 mAccChildCount should be PRInt32 instead of PRUint32

r=aaronleventhal


git-svn-id: svn://10.0.0.236/trunk@198548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ginn.chen%sun.com 2006-05-29 05:43:12 +00:00
parent 9fe4b2aad8
commit a9339f1e76
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ class nsIAtom;
// Saves a data member -- if child count equals this value we haven't
// cached children or child count yet
enum { eChildCountUninitialized = 0xffffffff };
enum { eChildCountUninitialized = -1 };
struct nsStateMapEntry
{
@ -194,7 +194,7 @@ protected:
nsCOMPtr<nsIAccessible> mParent;
nsIAccessible *mFirstChild, *mNextSibling;
nsRoleMapEntry *mRoleMapEntry; // Non-null indicates author-supplied role; possibly state & value as well
PRUint32 mAccChildCount;
PRInt32 mAccChildCount;
static nsRoleMapEntry gWAIRoleMap[];
static nsStateMapEntry gDisabledStateMap;

View File

@ -189,7 +189,7 @@ void nsHTMLImageAccessible::CacheChildren(PRBool aWalkAnonContent)
nsCOMPtr<nsIAccessible> areaAccessible;
nsCOMPtr<nsPIAccessible> privatePrevAccessible;
while (mAccChildCount < numMapAreas &&
while (mAccChildCount < (PRInt32)numMapAreas &&
(areaAccessible = CreateAreaAccessible(mAccChildCount)) != nsnull) {
if (privatePrevAccessible) {
privatePrevAccessible->SetNextSibling(areaAccessible);