diff options
author | wtc <devnull@localhost> | 1998-04-13 22:25:13 +0000 |
---|---|---|
committer | wtc <devnull@localhost> | 1998-04-13 22:25:13 +0000 |
commit | 980aefb4ad5bbbd96ed784745f7d4e4a127279a7 (patch) | |
tree | dd3e7cd6a54445beeda5895ef91e5d582843a74e | |
parent | 6a22fef71bf5c81090e9a23c3f2f75e0b1060683 (diff) | |
download | nspr-hg-980aefb4ad5bbbd96ed784745f7d4e4a127279a7.tar.gz |
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.
-rw-r--r-- | pr/src/io/prio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/io/prio.c b/pr/src/io/prio.c index 123b3854..d0be59fc 100644 --- a/pr/src/io/prio.c +++ b/pr/src/io/prio.c @@ -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(); |