Przeglądaj źródła

*** empty log message ***

David Rose 25 lat temu
rodzic
commit
4c864fe561
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      panda/src/mathutil/fftCompressor.cxx

+ 3 - 1
panda/src/mathutil/fftCompressor.cxx

@@ -488,6 +488,7 @@ read_hprs(DatagramIterator &di, vector_LVecBase3f &array) {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 void FFTCompressor::
 void FFTCompressor::
 free_storage() {
 free_storage() {
+#ifdef HAVE_FFTW
   RealPlans::iterator pi;
   RealPlans::iterator pi;
   for (pi = _real_compress_plans.begin(); 
   for (pi = _real_compress_plans.begin(); 
        pi != _real_compress_plans.end();
        pi != _real_compress_plans.end();
@@ -502,6 +503,7 @@ free_storage() {
     rfftw_destroy_plan((*pi).second);
     rfftw_destroy_plan((*pi).second);
   }
   }
   _real_decompress_plans.clear();
   _real_decompress_plans.clear();
+#endif
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
@@ -575,7 +577,7 @@ write_run(Datagram &datagram, FFTCompressor::RunWidth run_width,
       // In the case of RW_double, we only write the numbers one at a
       // In the case of RW_double, we only write the numbers one at a
       // time, each time preceded by the RW_double flag.  Hopefully
       // time, each time preceded by the RW_double flag.  Hopefully
       // this will happen only rarely.
       // this will happen only rarely.
-      datagram.add_int8((int)RW_double);
+      datagram.add_int8((PN_int8)RW_double);
       datagram.add_float64(*ri);
       datagram.add_float64(*ri);
     }
     }
     break;
     break;