search/index: fixed a number of bad conversions to properly deal with text documents bigger than 2GB

This commit is contained in:
"Jean-Francois Dockes ext:(%22)
2011-07-12 08:28:09 -07:00
parent 5e59354535
commit 88685d2e64
11 changed files with 42 additions and 23 deletions
+4 -1
View File
@@ -14,6 +14,9 @@
* Free Software Foundation, Inc.,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#ifdef HAVE_CONFIG_H
#include "autoconfig.h"
#endif
#include <stdio.h>
#include <stdlib.h>
@@ -163,7 +166,7 @@ void ResListPager::displayDoc(RclConfig *config,
}
// Size information. We print both doc and file if they differ a lot
long fsize = -1, dsize = -1;
off_t fsize = -1, dsize = -1;
if (!doc.dbytes.empty())
dsize = atol(doc.dbytes.c_str());
if (!doc.fbytes.empty())