View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011662 | Taler | exchange | public | 2026-07-21 14:08 | 2026-07-21 14:08 |
| Reporter | adridg | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Product Version | 1.5 | ||||
| Summary | 0011662: Fails to compile with Clang, non-standard C | ||||
| Description | There'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. | ||||
| Tags | No 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 (
| ||||