summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/object/tree/read.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/object/tree/read.c b/tests/object/tree/read.c
index 4c4636bc0..6fe224b16 100644
--- a/tests/object/tree/read.c
+++ b/tests/object/tree/read.c
@@ -75,7 +75,11 @@ void test_object_tree_read__two(void)
}
#define BIGFILE "bigfile"
-#define BIGFILE_SIZE (off_t)4 * 1024 * 1024 * 1024 /* 4 GiB */
+#ifdef GIT_ARCH_64
+# define BIGFILE_SIZE (size_t)4 * 1024 * 1024 * 1024 /* 4 GiB */
+#else
+# define BIGFILE_SIZE SIZE_MAX
+#endif
void test_object_tree_read__largefile(void)
{