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:
wtc 1998-04-13 22:25:13 +00:00
parent 1a658dc679
commit e8f3cf3f95

View File

@ -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();