Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-19 12:28:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-19 12:29:45 +0300
commit40ecb2ded81ba7265c426f6680faf3417ff22aeb (patch)
treefa6a746f1b79fc54a6c78f40243a537a464f5bd4 /source/blender/blenkernel/intern/bpath.c
parent7ba82f3f0a848aedcc0f3b3f73a429f740792dbe (diff)
Windows: use int64_t instead of off_t
Avoids 2gb file size limit.
Diffstat (limited to 'source/blender/blenkernel/intern/bpath.c')
-rw-r--r--source/blender/blenkernel/intern/bpath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c
index e85cb700bce..3d91283e1cc 100644
--- a/source/blender/blenkernel/intern/bpath.c
+++ b/source/blender/blenkernel/intern/bpath.c
@@ -211,7 +211,7 @@ static bool missing_files_find__recursive(
char *filename_new,
const char *dirname,
const char *filename,
- off_t *r_filesize,
+ int64_t *r_filesize,
int *r_recur_depth)
{
/* file searching stuff */
@@ -219,7 +219,7 @@ static bool missing_files_find__recursive(
struct dirent *de;
BLI_stat_t status;
char path[FILE_MAX];
- off_t size;
+ int64_t size;
bool found = false;
dir = opendir(dirname);
@@ -275,7 +275,7 @@ static bool missing_files_find__visit_cb(void *userdata, char *path_dst, const c
BPathFind_Data *data = (BPathFind_Data *)userdata;
char filename_new[FILE_MAX];
- off_t filesize = -1;
+ int64_t filesize = -1;
int recur_depth = 0;
bool found;