diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 19:29:58 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-03-26 19:29:58 +0100 |
commit | ffe1ec4cb9c9ad23ecba095acb4e38edb741b402 (patch) | |
tree | c9631b8ddc93b7e996e3cdfe27eeb05d9edd4856 /src/pq/db_pq.c | |
parent | 10b693ace428f7619d3dfc393d8ca4e6e93b91fd (diff) | |
download | exchange-ffe1ec4cb9c9ad23ecba095acb4e38edb741b402.tar.xz |
db: fix leftovers from #3716
Diffstat (limited to 'src/pq/db_pq.c')
-rw-r--r-- | src/pq/db_pq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pq/db_pq.c b/src/pq/db_pq.c index bbcf002ee..3594fcbf2 100644 --- a/src/pq/db_pq.c +++ b/src/pq/db_pq.c @@ -179,7 +179,7 @@ TALER_DB_extract_amount_nbo (PGresult *result, curr_num = PQfnumber (result, curr_name); GNUNET_assert (curr_num >= 0); - r_amount_nbo->value = *(uint32_t *) PQgetvalue (result, row, val_num); + r_amount_nbo->value = *(uint64_t *) PQgetvalue (result, row, val_num); r_amount_nbo->fraction = *(uint32_t *) PQgetvalue (result, row, frac_num); memset (r_amount_nbo->currency, 0, @@ -212,7 +212,7 @@ TALER_DB_extract_amount (PGresult *result, frac_name, curr_name, &amount_nbo); - r_amount->value = ntohl (amount_nbo.value); + r_amount->value = GNUNET_ntohll (amount_nbo.value); r_amount->fraction = ntohl (amount_nbo.fraction); (void) strncpy (r_amount->currency, amount_nbo.currency, TALER_CURRENCY_LEN); |