Ver código fonte

fix: M_DMAXEXP was wrong

ceriel 35 anos atrás
pai
commit
e40d14b40a
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      include/_tail_cc/math.h
  2. 1 1
      include/_tail_cc/stdio.h

+ 1 - 1
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))

+ 1 - 1
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;