off_t size will be long size in 64bit
Change-Id: I9b6e0adf16a5a9832180d99f99018022a7415dbe
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
}
cursor->resultset_row_count = row_count;
- cursor->row_offset_list = (off_t *)calloc(row_count, sizeof(int));
+ cursor->row_offset_list = (off_t *)calloc(row_count, sizeof(off_t));
if (cursor->row_offset_list == NULL) {
LOGE("Out of memory. can not alloc row_offset_list.");
goto out;
LOGE("resultset_content_offset : %d", cursor->resultset_content_offset);
- sqlite3_int64 row_offset = 0;
+ off_t row_offset = 0;
for (i = 0; i < row_count; i++) {
row_offset = 0;
for (j = 0; j < column_count; j++) {