10c00ab6ef
while it is an official stable release it is still .0 so better keep 1.8 in parallel (first impression: it lacks its desktop icon)
16 lines
635 B
Text
16 lines
635 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2010/02/18 21:00:44 drochner Exp $
|
|
|
|
--- plugins/fn-numtheory/numtheory.c.orig 2009-09-07 02:03:35.000000000 +0000
|
|
+++ plugins/fn-numtheory/numtheory.c
|
|
@@ -38,7 +38,10 @@ GNM_PLUGIN_MODULE_HEADER;
|
|
* represented in a gnm_float _and_ in a guint64. (For regular "double",
|
|
* the latter part is irrelevant.)
|
|
*/
|
|
-static const double bit_max = MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
|
|
+static inline double bit_max_fn(void) {
|
|
+ return MIN (1 / GNM_EPSILON, (gnm_float)G_MAXUINT64);
|
|
+}
|
|
+#define bit_max (bit_max_fn())
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
|