summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/fmtmsg.c6
-rw-r--r--stdlib/strtod.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/stdlib/fmtmsg.c b/stdlib/fmtmsg.c
index bb8502f00b..660df1fdcb 100644
--- a/stdlib/fmtmsg.c
+++ b/stdlib/fmtmsg.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -162,7 +162,7 @@ fmtmsg (long int classification, const char *label, int severity,
 			  do_action ? "TO FIX: " : "",
 			  do_action ? action : "",
 			  do_action && do_tag ? "  " : "",
-			  do_tag ? tag : "") == WEOF)
+			  do_tag ? tag : "") < 0)
 	    /* Oh, oh.  An error occurred during the output.  */
 	    result = MM_NOMSG;
 	}
@@ -179,7 +179,7 @@ fmtmsg (long int classification, const char *label, int severity,
 		     do_action ? "TO FIX: " : "",
 		     do_action ? action : "",
 		     do_action && do_tag ? "  " : "",
-		     do_tag ? tag : "") == EOF)
+		     do_tag ? tag : "") < 0)
 	  /* Oh, oh.  An error occurred during the output.  */
 	  result = MM_NOMSG;
     }
diff --git a/stdlib/strtod.c b/stdlib/strtod.c
index 518b171f09..63a3a9749d 100644
--- a/stdlib/strtod.c
+++ b/stdlib/strtod.c
@@ -676,8 +676,8 @@ INTERNAL (STRTOF) (nptr, endptr, group LOCALE_PARAM)
   /* If no other digit but a '0' is found the result is 0.0.
      Return current read pointer.  */
   if ((c < L_('0') || c > L_('9'))
-      && (base == 16 && (c < (wint_t) TOLOWER (L_('a'))
-			 || c > (wint_t) TOLOWER (L_('f'))))
+      && (base == 16 && (c < (CHAR_TYPE) TOLOWER (L_('a'))
+			 || c > (CHAR_TYPE) TOLOWER (L_('f'))))
 #ifdef USE_WIDE_CHAR
       && c != (wint_t) decimal
 #else