aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-13 10:00:11 +0000
committerRoland McGrath <roland@gnu.org>1995-03-13 10:00:11 +0000
commit67a3a8ac7fef11753205c69da9df9c4ef30f6076 (patch)
treedf9258ef6f20d92185c38bec42a64cf1b23da9ec
parent51f753022889f9cb9640947fa347ad1df30718ee (diff)
downloadglibc-67a3a8ac7fef11753205c69da9df9c4ef30f6076.zip
glibc-67a3a8ac7fef11753205c69da9df9c4ef30f6076.tar.gz
glibc-67a3a8ac7fef11753205c69da9df9c4ef30f6076.tar.bz2
* stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
to avoid warning. * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to int to avoid warning.
-rw-r--r--ChangeLog5
-rw-r--r--stdio/printf_fp.c4
-rw-r--r--sysdeps/generic/sigset.h2
3 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 14b7219..d73e47f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
Mon Mar 13 01:48:16 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
+ * stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
+ to avoid warning.
+ * sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
+ int to avoid warning.
+
Support building several flavors of objects and libraries.
* Makerules (libtypes, object-suffixes): New variables.
(libtype.*, CFLAGS-*, CPPFLAGS-*): New variables for each object
diff --git a/stdio/printf_fp.c b/stdio/printf_fp.c
index 10018f0..42443fa 100644
--- a/stdio/printf_fp.c
+++ b/stdio/printf_fp.c
@@ -929,7 +929,7 @@ guess_grouping (unsigned int intdig_max, const char *grouping, wchar_t sepchar)
return 0;
groups = 0;
- while (intdig_max > *grouping)
+ while (intdig_max > (unsigned int) *grouping)
{
++groups;
intdig_max -= *grouping++;
@@ -981,7 +981,7 @@ group_number (char *buf, char *bufend, unsigned int intdig_no,
else if (*grouping == 0)
/* Same grouping repeats. */
--grouping;
- } while (intdig_no > *grouping);
+ } while (intdig_no > (unsigned int) *grouping);
/* Copy the remaining ungrouped digits. */
do
diff --git a/sysdeps/generic/sigset.h b/sysdeps/generic/sigset.h
index bc56d96..b3664e7 100644
--- a/sysdeps/generic/sigset.h
+++ b/sysdeps/generic/sigset.h
@@ -57,7 +57,7 @@ typedef unsigned long int __sigset_t;
_EXTERN_INLINE int \
__##NAME (CONST __sigset_t *__set, int __sig) \
{ \
- if (__sig < 1 || __sig > sizeof (__sigset_t) * 8) \
+ if (__sig < 1 || __sig > (int) sizeof (__sigset_t) * 8) \
{ \
extern int raise (int); \
return raise (-1); \