aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/cash.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-22 07:13:01 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-22 07:13:01 +0000
commit021778eed3e6485b35ec74bbbf61a31724e87f23 (patch)
treed93e775420a611509aaaccea96b49661aaeebe8b /src/backend/utils/adt/cash.c
parent7515bb484eac9d04b5f49fde94566d1807b84dea (diff)
downloadpostgresql-021778eed3e6485b35ec74bbbf61a31724e87f23.tar.gz
postgresql-021778eed3e6485b35ec74bbbf61a31724e87f23.zip
We store Cash/money as int of size 4, so make it an int rather than a long.
Diffstat (limited to 'src/backend/utils/adt/cash.c')
-rw-r--r--src/backend/utils/adt/cash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c
index 3bc01c748f2..1cadb742e62 100644
--- a/src/backend/utils/adt/cash.c
+++ b/src/backend/utils/adt/cash.c
@@ -3,13 +3,13 @@
* Written by D'Arcy J.M. Cain
*
* Functions to allow input and output of money normally but store
- * and handle it as longs
+ * and handle it as int4s
*
* A slightly modified version of this file and a discussion of the
* workings can be found in the book "Software Solutions in C" by
* Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
*
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.8 1997/08/21 23:56:37 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.9 1997/08/22 07:12:52 momjian Exp $
*/
#include <stdio.h>
@@ -97,7 +97,7 @@ cash_in(const char *str)
while (isspace(*s) || *s == csymbol) s++;
for (; ; s++) {
- /* we look for digits as long as we have less */
+ /* we look for digits as int4 as we have less */
/* than the required number of decimal places */
if (isdigit(*s) && dec < fpoint) {
value = (value * 10) + *s - '0';
@@ -421,7 +421,7 @@ cashsmaller(Cash *c1, Cash *c2)
/* cash_words_out()
- * This converts a long as well but to a representation using words
+ * This converts a int4 as well but to a representation using words
* Obviously way North American centric - sorry
*/
const char *