Commit 3edbc441654cf182d6f2273dc8b4f066be35a1fb

Edward Thomson 2019-05-20T05:48:39

object: use literal constant in bigfile test Don't calculate 4 GiB as that will produce a compiler warning on MSVC. Just hardcode it.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tests/object/tree/read.c b/tests/object/tree/read.c
index 6fe224b..de2e64c 100644
--- a/tests/object/tree/read.c
+++ b/tests/object/tree/read.c
@@ -75,8 +75,9 @@ void test_object_tree_read__two(void)
 }
 
 #define BIGFILE "bigfile"
+
 #ifdef GIT_ARCH_64
-# define BIGFILE_SIZE (size_t)4 * 1024 * 1024 * 1024 /* 4 GiB */
+#define BIGFILE_SIZE (off_t)4294967296
 #else
 # define BIGFILE_SIZE SIZE_MAX
 #endif