Commit 3edbc441 by Edward Thomson

object: use literal constant in bigfile test

Don't calculate 4 GiB as that will produce a compiler warning on MSVC.
Just hardcode it.
parent b26e51e0
...@@ -75,8 +75,9 @@ void test_object_tree_read__two(void) ...@@ -75,8 +75,9 @@ void test_object_tree_read__two(void)
} }
#define BIGFILE "bigfile" #define BIGFILE "bigfile"
#ifdef GIT_ARCH_64 #ifdef GIT_ARCH_64
# define BIGFILE_SIZE (size_t)4 * 1024 * 1024 * 1024 /* 4 GiB */ #define BIGFILE_SIZE (off_t)4294967296
#else #else
# define BIGFILE_SIZE SIZE_MAX # define BIGFILE_SIZE SIZE_MAX
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment