mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Changing to long hashtable tag (113175). code=gisburn, r=mcafee
This commit is contained in:
parent
a9f4852fcf
commit
61d8eedd8c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user