summaryrefslogtreecommitdiff
path: root/src/include/utils/cash.h
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/include/utils/cash.h
parent7515bb484eac9d04b5f49fde94566d1807b84dea (diff)
We store Cash/money as int of size 4, so make it an int rather than a long.
Diffstat (limited to 'src/include/utils/cash.h')
-rw-r--r--src/include/utils/cash.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/utils/cash.h b/src/include/utils/cash.h
index 0461a5c2513..9307654315a 100644
--- a/src/include/utils/cash.h
+++ b/src/include/utils/cash.h
@@ -3,13 +3,14 @@
* Written by D'Arcy J.M. Cain
*
* Functions to allow input and output of money normally but store
- * and handle it as long integers.
+ * and handle it as int4.
*/
#ifndef CASH_H
#define CASH_H
-typedef long int Cash;
+/* if we store this as 4 bytes, we better make it int, not long, bjm */
+typedef signed int Cash;
extern const char *cash_out(Cash *value);
extern Cash *cash_in(const char *str);