From eb6c2af31375b4a215cd4cf3c39764e7a54ea0d9 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 20 Apr 1989 15:27:00 +0000 Subject: [PATCH] fix: M_DMAXEXP was wrong --- include/_tail_cc/math.h | 2 +- include/_tail_cc/stdio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/_tail_cc/math.h b/include/_tail_cc/math.h index 0c3188d32..32659051e 100644 --- a/include/_tail_cc/math.h +++ b/include/_tail_cc/math.h @@ -67,7 +67,7 @@ extern double sinh(), tanh(), cosh(); #define M_MIN_D 5.562684646268003458e-309 #define M_DEXPLEN 11 #endif -#define M_DMAXEXP (1 << (M_DEXPLEN - 1) - 1) +#define M_DMAXEXP ((1 << (M_DEXPLEN - 1)) - 1) #define M_DMINEXP (-M_DMAXEXP) #define M_LN_MAX_D (M_LN2 * M_DMAXEXP) #define M_LN_MIN_D (M_LN2 * (M_DMINEXP - 1)) diff --git a/include/_tail_cc/stdio.h b/include/_tail_cc/stdio.h index e40c92206..a37449787 100644 --- a/include/_tail_cc/stdio.h +++ b/include/_tail_cc/stdio.h @@ -29,12 +29,12 @@ #ifndef FILE extern struct _io_buf { - int _fd; int _count; int _flags; unsigned char *_buf; unsigned char *_ptr; int _bufsiz; + int _fd; } *_io_table[_NFILES], _stdin, _stdout, _stderr;