mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-01 19:39:13 +00:00
In PR_GetSpecialFD, cast the PRSpecialFD variable 'osfd' to int
because some compilers make the enum PRSpecialFD an unsigned int type and complain that 'osfd' is always >= PR_StandardInput, which has the value 0.
This commit is contained in:
parent
1a658dc679
commit
e8f3cf3f95
@ -60,7 +60,7 @@ void _PR_InitIO(void)
|
||||
PR_IMPLEMENT(PRFileDesc*) PR_GetSpecialFD(PRSpecialFD osfd)
|
||||
{
|
||||
PRFileDesc *result = NULL;
|
||||
PR_ASSERT(osfd >= PR_StandardInput && osfd <= PR_StandardError);
|
||||
PR_ASSERT((int) osfd >= PR_StandardInput && osfd <= PR_StandardError);
|
||||
|
||||
if (!_pr_initialized) _PR_ImplicitInitialization();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user