summaryrefslogtreecommitdiff
path: root/amount.h
diff options
context:
space:
mode:
Diffstat (limited to 'amount.h')
-rw-r--r--amount.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/amount.h b/amount.h
index f2d44010..474f2dae 100644
--- a/amount.h
+++ b/amount.h
@@ -188,6 +188,8 @@ typedef std::pair<const std::string, commodity_t *> commodities_pair;
class commodity_t
{
public:
+ typedef unsigned short ident_t;
+
std::string symbol;
std::string name;
std::string note;
@@ -195,7 +197,7 @@ class commodity_t
unsigned int flags;
history_map history;
amount_t conversion;
- unsigned long ident;
+ ident_t ident;
// If set, this global function pointer is called to determine
// whether prices have been updated in the meanwhile.