Changeset: e55779d590e2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e55779d590e2
Modified Files:
        gdk/gdk_calc_private.h
Branch: default
Log Message:

Use a long double to print hge values in error messages.
Also make clear that the formats are only used in error messages.


diffs (29 lines):

diff --git a/gdk/gdk_calc_private.h b/gdk/gdk_calc_private.h
--- a/gdk/gdk_calc_private.h
+++ b/gdk/gdk_calc_private.h
@@ -319,13 +319,14 @@ BUN dofsum(const void *restrict values, 
                    bool nil_if_empty)
        __attribute__((__visibility__("hidden")));
 
-/* format strings for the seven/eight basic types we deal with */
+/* format strings for the seven/eight basic types we deal with
+ * these are only used in error messages */
 #define FMTbte "%d"
 #define FMTsht "%d"
 #define FMTint "%d"
 #define FMTlng LLFMT
 #ifdef HAVE_HGE
-#define FMThge "%.40g"
+#define FMThge "%.40Lg (approx. value)"
 #endif
 #define FMTflt "%.9g"
 #define FMTdbl "%.17g"
@@ -338,7 +339,7 @@ BUN dofsum(const void *restrict values, 
 #define CSTint
 #define CSTlng
 #ifdef HAVE_HGE
-#define CSThge  (dbl)
+#define CSThge  (long double)
 #endif
 #define CSTflt
 #define CSTdbl
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to