aboutsummaryrefslogtreecommitdiff
path: root/taler-exchange/patch/2-remove-double-constant.patch
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-10-01 15:31:55 -0500
committerSlack Coder <slackcoder@server.ky>2024-10-07 16:00:42 -0500
commitc983a7f11401015fb845d9d757da619498490ac3 (patch)
treedadb37df23551e9229bdf435e73ac63b713d22da /taler-exchange/patch/2-remove-double-constant.patch
parent97baf94615ba2ea028f51d207ea6cc974062c986 (diff)
downloadslackbuilds-c983a7f11401015fb845d9d757da619498490ac3.tar.xz
taler: bump all to 0.13.0
Diffstat (limited to 'taler-exchange/patch/2-remove-double-constant.patch')
-rw-r--r--taler-exchange/patch/2-remove-double-constant.patch42
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. */