summaryrefslogtreecommitdiff
path: root/quotes.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-15 02:55:16 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:35:32 -0400
commita087e6ea97494d97580c97705c665cac317a0dc3 (patch)
treed771c7f88f5b6255cb46b2d69aeec9395b3f982d /quotes.cc
parent691c29a696d2347faebd5663da9d1dc751f275eb (diff)
downloadfork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.gz
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.tar.bz2
fork-ledger-a087e6ea97494d97580c97705c665cac317a0dc3.zip
Cleared out all warnings; started work on getting Python up again.
Diffstat (limited to 'quotes.cc')
-rw-r--r--quotes.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/quotes.cc b/quotes.cc
index a8fbfbc5..c5af712b 100644
--- a/quotes.cc
+++ b/quotes.cc
@@ -27,9 +27,9 @@ void quotes_by_script::operator()(commodity_base_t& commodity,
DEBUG_PRINT_("pricing_leeway is " << pricing_leeway);
if ((commodity.history &&
- (datetime_t::now - commodity.history->last_lookup) < pricing_leeway) ||
- (datetime_t::now - last) < pricing_leeway ||
- (price && moment > date && (moment - date) <= pricing_leeway))
+ (datetime_t::now - commodity.history->last_lookup) < (long)pricing_leeway) ||
+ (datetime_t::now - last) < (long)pricing_leeway ||
+ (price && moment > date && (moment - date) <= (long)pricing_leeway))
return;
using namespace std;