020-x86-float-cast.patch (418B)
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 7 #define RRD_COOKIE "RRD" 8 #define RRD_VERSION "0001" 9 -#define FLOAT_COOKIE 8.642135E130 10 +#define FLOAT_COOKIE ((double)8.642135E130) 11 12 #if defined(WIN32) 13 #define DNAN ((double)fmod(0.0,0.0))