зеркало из https://github.com/mozilla/pjs.git
add typecasts to reduce warnings on Macintosh compiler (r/a mike mccabe)
This commit is contained in:
Родитель
e6e511164c
Коммит
a91213d560
|
@ -336,7 +336,7 @@ js_SuspendThread(JSThinLock *p)
|
||||||
PR_Unlock(fl->slock);
|
PR_Unlock(fl->slock);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
stat = PR_WaitCondVar(fl->svar,PR_INTERVAL_NO_TIMEOUT);
|
stat = (JSStatus)PR_WaitCondVar(fl->svar,PR_INTERVAL_NO_TIMEOUT);
|
||||||
if (stat == JS_FAILURE) {
|
if (stat == JS_FAILURE) {
|
||||||
fl->susp--;
|
fl->susp--;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -362,7 +362,7 @@ js_ResumeThread(JSThinLock *p)
|
||||||
PR_Unlock(fl->slock);
|
PR_Unlock(fl->slock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
stat = PR_NotifyCondVar(fl->svar);
|
stat = (JSStatus)PR_NotifyCondVar(fl->svar);
|
||||||
JS_ASSERT(stat != JS_FAILURE);
|
JS_ASSERT(stat != JS_FAILURE);
|
||||||
PR_Unlock(fl->slock);
|
PR_Unlock(fl->slock);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче