From 5b91673b2e85ddee52580d311e491ee58219e62b Mon Sep 17 00:00:00 2001 From: "mcafee%netscape.com" Date: Mon, 3 Dec 2001 02:31:46 +0000 Subject: [PATCH] Changing to long hashtable tag (113175). code=gisburn, r=mcafee git-svn-id: svn://10.0.0.236/trunk@109506 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/widget/src/xlib/nsAppShell.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/mozilla/widget/src/xlib/nsAppShell.cpp b/mozilla/widget/src/xlib/nsAppShell.cpp index 509d6f17981..360e10352eb 100644 --- a/mozilla/widget/src/xlib/nsAppShell.cpp +++ b/mozilla/widget/src/xlib/nsAppShell.cpp @@ -395,14 +395,14 @@ NS_IMETHODIMP nsAppShell::ListenToEventQueue(nsIEventQueue *aQueue, /* Add listener - * but only if we arn't already in the table... */ if (!PL_HashTableLookup(sQueueHashTable, key)) { - int tag; - + long tag; + /* set up our fds callbacks */ - tag = (int)XtAppAddInput(mAppContext, - queue_fd, - (XtPointer)(long)(XtInputReadMask), - HandleQueueXtProc, - (XtPointer)mEventQueue); + tag = (long)XtAppAddInput(mAppContext, + queue_fd, + (XtPointer)(long)(XtInputReadMask), + HandleQueueXtProc, + (XtPointer)mEventQueue); /* This hack would not be neccesary if we would have a hashtable function * which returns success/failure in a seperate var ... @@ -427,7 +427,7 @@ NS_IMETHODIMP nsAppShell::ListenToEventQueue(nsIEventQueue *aQueue, PL_UnregisterEventIDFunc(plqueue); sEventQueueList->RemoveElement(plqueue); - int tag = int(PL_HashTableLookup(sQueueHashTable, key)); + int tag = long(PL_HashTableLookup(sQueueHashTable, key)); if (tag) { tag -= NEVER_BE_ZERO_MAGIC; XtRemoveInput((XtInputId)tag);