Quellcode durchsuchen

*** empty log message ***

cxgeorge vor 24 Jahren
Ursprung
Commit
c402611a7f
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      panda/src/tiff/tif_aux.c

+ 1 - 2
panda/src/tiff/tif_aux.c

@@ -30,7 +30,6 @@
  * Auxiliary Support Routines.
  */
 #include "tiffiop.h"
-#include "cmath.h"
 
 #ifdef COLORIMETRY_SUPPORT
 #include <math.h>
@@ -45,7 +44,7 @@ TIFFDefaultTransferFunction(TIFFDirectory* td)
     tf[0][0] = 0;
     for (i = 1; i < n; i++) {
         double t = (double)i/((double) n-1.);
-        tf[0][i] = (uint16)cfloor(65535.*pow(t, 2.2) + .5);
+        tf[0][i] = (uint16)floor(65535.*pow(t, 2.2) + .5);
     }
     if (td->td_samplesperpixel - td->td_extrasamples > 1) {
         tf[1] = (uint16 *)_TIFFmalloc(n * sizeof (uint16));