mu: use correct conversion for size

This changed with the new parser.
This commit is contained in:
djcb 2017-10-30 21:14:20 +02:00
parent 6053c1ec1f
commit 4ca6b527b7
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ mu_msg_doc_get_num_field (MuMsgDoc *self, MuMsgFieldId mfid)
const std::string s (self->doc().get_value(mfid));
if (s.empty())
return 0;
else if (mfid == MU_MSG_FIELD_ID_DATE)
else if (mfid == MU_MSG_FIELD_ID_DATE ||
mfid == MU_MSG_FIELD_ID_SIZE)
return strtol (s.c_str(), NULL, 10);
else {
return static_cast<gint64>