Fix for sensitive compilation environments.

This commit is contained in:
Eugene Morozov 2009-02-25 16:19:46 +00:00 committed by John Wiegley
parent 7d0491c5fe
commit 0667bc1a70
2 changed files with 3 additions and 3 deletions

View file

@ -176,12 +176,12 @@ namespace {
value_t get_count(account_t& account) {
assert(account.xdata_);
return account.xdata_->total_count;
return long(account.xdata_->total_count);
}
value_t get_subcount(account_t& account) {
assert(account.xdata_);
return account.xdata_->count;
return long(account.xdata_->count);
}
value_t get_amount(account_t& account) {

View file

@ -189,7 +189,7 @@ namespace {
value_t get_count(post_t& post) {
if (post.xdata_)
return post.xdata_->count;
return long(post.xdata_->count);
else
return 1L;
}