diff options
Diffstat (limited to 'taler-exchange/patch/2-remove-double-constant.patch')
-rw-r--r-- | taler-exchange/patch/2-remove-double-constant.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/taler-exchange/patch/2-remove-double-constant.patch b/taler-exchange/patch/2-remove-double-constant.patch new file mode 100644 index 0000000..2ed21fd --- /dev/null +++ b/taler-exchange/patch/2-remove-double-constant.patch @@ -0,0 +1,42 @@ +diff -ru a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c +--- a/src/benchmark/taler-exchange-benchmark.c 2024-10-01 14:48:00.588810485 -0500 ++++ b/src/benchmark/taler-exchange-benchmark.c 2024-10-01 14:49:16.372809128 -0500 +@@ -296,7 +296,7 @@ + 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; +@@ -630,7 +630,7 @@ + " * 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 ( +diff -ru a/src/lib/exchange_api_stefan.c b/src/lib/exchange_api_stefan.c +--- a/src/lib/exchange_api_stefan.c 2024-10-01 14:48:00.564810485 -0500 ++++ b/src/lib/exchange_api_stefan.c 2024-10-01 14:49:16.396809127 -0500 +@@ -125,7 +125,7 @@ + min = get_unit (keys); + if (NULL == min) + return GNUNET_SYSERR; +- if (1.0d <= keys->stefan_lin) ++ if (1.0 <= keys->stefan_lin) + { + /* This cannot work, linear STEFAN fee estimate always + exceed any gross amount. */ +@@ -273,7 +273,7 @@ + min = get_unit (keys); + if (NULL == min) + return GNUNET_SYSERR; +- if (1.0d <= keys->stefan_lin) ++ if (1.0 <= keys->stefan_lin) + { + /* This cannot work, linear STEFAN fee estimate always + exceed any gross amount. */ |