Skip to content

Commit

Permalink
* stdio/printf_fp.c (group_number): Cast *GROUPING to unsigned int
Browse files Browse the repository at this point in the history
 	to avoid warning.
	* sysdeps/generic/sigset.h (__SIGSETFN): Cast result of sizeof to
 	int to avoid warning.
  • Loading branch information
Roland McGrath committed Mar 13, 1995
1 parent 51f7530 commit 67a3a8a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions stdio/printf_fp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sysdeps/generic/sigset.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
Expand Down

0 comments on commit 67a3a8a

Please sign in to comment.