020-x86-float-cast.patch 418 B

12345678910111213
  1. Index: rrdtool-1.0.50/src/rrd_format.h
  2. ===================================================================
  3. --- rrdtool-1.0.50.orig/src/rrd_format.h
  4. +++ rrdtool-1.0.50/src/rrd_format.h
  5. @@ -20,7 +20,7 @@
  6. #define RRD_COOKIE "RRD"
  7. #define RRD_VERSION "0001"
  8. -#define FLOAT_COOKIE 8.642135E130
  9. +#define FLOAT_COOKIE ((double)8.642135E130)
  10. #if defined(WIN32)
  11. #define DNAN ((double)fmod(0.0,0.0))