mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
implemented a backward compatible fix for bug when searching (advanced) with max size larger than 2Gb
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4094 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9e2be4b5be
commit
794ab4aa06
4 changed files with 61 additions and 38 deletions
|
@ -48,6 +48,11 @@ bool DateExpression::eval(FileEntry *file)
|
|||
return evalRel(file->modtime);
|
||||
}
|
||||
|
||||
bool SizeExpressionMB::eval(FileEntry *file)
|
||||
{
|
||||
return evalRel((int)(file->size/(uint64_t)(1024*1024)));
|
||||
}
|
||||
|
||||
bool SizeExpression::eval(FileEntry *file)
|
||||
{
|
||||
return evalRel(file->size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue