aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_amount_arithmetic_inconsistency.c
diff options
context:
space:
mode:
authorCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-04-27 15:29:38 +0200
committerCedric Zwahlen <cedric.zwahlen@students.bfh.ch>2024-04-27 15:29:38 +0200
commit1b8f043e8e311a32c17b0739680d4bda648c4ff2 (patch)
tree906d6d1e6e9c19f63766026b00e62a3565c6bb51 /src/auditordb/pg_get_amount_arithmetic_inconsistency.c
parentebbf8f37ac3a15653c869d5d06173e8e9aa80ac7 (diff)
downloadexchange-1b8f043e8e311a32c17b0739680d4bda648c4ff2.tar.gz
exchange-1b8f043e8e311a32c17b0739680d4bda648c4ff2.tar.bz2
exchange-1b8f043e8e311a32c17b0739680d4bda648c4ff2.zip
Fix bugs
Diffstat (limited to 'src/auditordb/pg_get_amount_arithmetic_inconsistency.c')
-rw-r--r--src/auditordb/pg_get_amount_arithmetic_inconsistency.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auditordb/pg_get_amount_arithmetic_inconsistency.c b/src/auditordb/pg_get_amount_arithmetic_inconsistency.c
index a23fa40bd..921856daa 100644
--- a/src/auditordb/pg_get_amount_arithmetic_inconsistency.c
+++ b/src/auditordb/pg_get_amount_arithmetic_inconsistency.c
@@ -108,13 +108,13 @@ TAH_PG_get_amount_arithmetic_inconsistency (
TALER_AUDITORDB_AmountArithmeticInconsistencyCallback cb,
void *cb_cls)
{
-
+ uint64_t plimit = (uint64_t) ((limit < 0) ? -limit : limit);
struct PostgresClosure *pg = cls;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_uint64 (&offset),
GNUNET_PQ_query_param_bool (return_suppressed),
- GNUNET_PQ_query_param_int64 (&limit),
+ GNUNET_PQ_query_param_uint64 (&plimit),
GNUNET_PQ_query_param_end
};
struct AmountArithmeticInconsistencyContext dcc = {