View Issue Details

IDProjectCategoryView StatusLast Update
0011662Talerexchangepublic2026-07-21 14:08
Reporteradridg Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version1.5 
Summary0011662: Fails to compile with Clang, non-standard C
DescriptionThere's two places where a floating-point constant is written with a non-standard `d` suffix. Standard C recognizes `f` suffixes (for float constants), **no** suffix (for double), and `l` (for long double). This fails to compile with Clang on FreeBSD. I also can't find `d` as a documented suffix for floating-point constants in the GCC manual. Trivial patch attached.
TagsNo tags attached.
Attached Files
patch-src_benchmark_taler-exchange-benchmark.c (873 bytes)   
--- src/benchmark/taler-exchange-benchmark.c.orig	2026-07-21 11:10:12 UTC
+++ src/benchmark/taler-exchange-benchmark.c
@@ -296,7 +296,7 @@ run (void *cls,
                                      GNUNET_TIME_UNIT_ZERO,
                                      amount_1,
                                      MHD_HTTP_OK));
-      if (eval_probability (refresh_rate / 100.0d))
+      if (eval_probability (refresh_rate / 100.0))
       {
         char *melt_label;
         char *reveal_label;
@@ -628,7 +628,7 @@ main (int argc,
              " * Reserve=%u * Parallel=%u, operations in %s\n",
              howmany_coins,
              howmany_coins,
-             howmany_coins * (refresh_rate / 100.0d),
+             howmany_coins * (refresh_rate / 100.0),
              howmany_reserves,
              howmany_clients,
              GNUNET_STRINGS_relative_time_to_string (

Activities

Issue History

Date Modified Username Field Change
2026-07-21 14:08 adridg New Issue
2026-07-21 14:08 adridg File Added: patch-src_benchmark_taler-exchange-benchmark.c