d45ef2c11a
Explicitely cast float cookie value to double, fixes erroneous "RRD was created on another architecture" errors on x86. Patches provided by Thomas Heil <heil@terminal-consulting.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@29874 3c298f89-4303-0410-b956-a3cf2f4a3e73
14 lines
448 B
Diff
14 lines
448 B
Diff
Index: rrdtool-1.2.30/src/rrd_format.h
|
|
===================================================================
|
|
--- rrdtool-1.2.30.orig/src/rrd_format.h
|
|
+++ rrdtool-1.2.30/src/rrd_format.h
|
|
@@ -22,7 +22,7 @@
|
|
/* #define RRD_VERSION "0002" */
|
|
/* changed because microsecond precision requires another field */
|
|
#define RRD_VERSION "0003"
|
|
-#define FLOAT_COOKIE 8.642135E130
|
|
+#define FLOAT_COOKIE ((double)8.642135E130)
|
|
|
|
#include "rrd_nan_inf.h"
|
|
|