Commit 4346a7b7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

This commit was generated by cvs2svn to compensate for changes in r466,

which included commits to RCS files with non-trunk default branches.
parent 817a0520
......@@ -55,7 +55,7 @@ extern int accept(int fd, struct sockaddr *sock, int *len);
#undef inet_ntoa
#endif
static char *inet_ntoa(ad)
char *inet_ntoa(ad)
struct in_addr ad;
{
u_long s_ad;
......
......@@ -240,9 +240,10 @@ rflag: switch (*++fmt)
* zeroes later, so buffer size stays rational.
*/
if (prec > MAXFRACT) {
if (*fmt != 'g' && *fmt != 'G' || (flags&ALT))
fpprec = prec - MAXFRACT;
prec = MAXFRACT;
if ((*fmt != 'g' && *fmt != 'G') ||
(flags&ALT))
fpprec = prec - MAXFRACT;
prec = MAXFRACT;
}
else if (prec == -1)
prec = DEFPREC;
......@@ -556,7 +557,7 @@ eformat: if (expcnt) {
* conversion is less than -4 or greater than the precision.''
* -- ANSI X3J11
*/
if (expcnt > prec || !expcnt && fract && fract < .0001) {
if (expcnt > prec || (!expcnt && fract && fract < .0001)) {
/*
* g/G format counts "significant digits, not digits of
* precision; for the e/E format, this just causes an
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment