mirror of https://github.com/djcb/mu.git
mu: use correct conversion for size
This changed with the new parser.
This commit is contained in:
parent
6053c1ec1f
commit
4ca6b527b7
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue