summaryrefslogtreecommitdiff
path: root/src/pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/pool.cc')
-rw-r--r--src/pool.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pool.cc b/src/pool.cc
index 73e76644..2d2b17cb 100644
--- a/src/pool.cc
+++ b/src/pool.cc
@@ -327,13 +327,15 @@ commodity_pool_t::parse_price_directive
datetime_t datetime;
string symbol;
- if (! no_date && std::isdigit(time_field_ptr[0])) {
+ if (! no_date &&
+ std::isdigit(static_cast<unsigned char>(time_field_ptr[0]))) {
symbol_and_price = next_element(time_field_ptr);
if (! symbol_and_price) return none;
datetime = parse_datetime(date_field + " " + time_field_ptr);
}
- else if (! no_date && std::isdigit(date_field_ptr[0])) {
+ else if (! no_date &&
+ std::isdigit(static_cast<unsigned char>(date_field_ptr[0]))) {
symbol_and_price = time_field_ptr;
datetime = datetime_t(parse_date(date_field));
}