[packages] rrdtool, rrdtool-1.0.x: backport upstream commit r2069
[openwrt/svn-archive/archive.git] / utils / rrdtool / patches / 020-x86-float-cast.patch
1 Index: rrdtool-1.2.30/src/rrd_format.h
2 ===================================================================
3 --- rrdtool-1.2.30.orig/src/rrd_format.h
4 +++ rrdtool-1.2.30/src/rrd_format.h
5 @@ -22,7 +22,7 @@
6 /* #define RRD_VERSION "0002" */
7 /* changed because microsecond precision requires another field */
8 #define RRD_VERSION "0003"
9 -#define FLOAT_COOKIE 8.642135E130
10 +#define FLOAT_COOKIE ((double)8.642135E130)
11
12 #include "rrd_nan_inf.h"
13