From 86b9dbc12f61c24457f2979e9496c85e115a3799 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Sat, 17 Nov 2012 04:50:48 -0800 Subject: [PATCH] Fix MSVC compilation warnings --- src/pack-objects.h | 10 +++++----- tests-clar/object/raw/short.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pack-objects.h b/src/pack-objects.h index 8c01f7189..e34cc2754 100644 --- a/src/pack-objects.h +++ b/src/pack-objects.h @@ -71,11 +71,11 @@ struct git_packbuilder { git_cond progress_cond; /* configs */ - unsigned long delta_cache_size; - unsigned long max_delta_cache_size; - unsigned long cache_max_small_delta_size; - unsigned long big_file_threshold; - unsigned long window_memory_limit; + uint64_t delta_cache_size; + uint64_t max_delta_cache_size; + uint64_t cache_max_small_delta_size; + uint64_t big_file_threshold; + uint64_t window_memory_limit; int nr_threads; /* nr of threads to use */ diff --git a/tests-clar/object/raw/short.c b/tests-clar/object/raw/short.c index 14b1ae219..93c79b6a5 100644 --- a/tests-clar/object/raw/short.c +++ b/tests-clar/object/raw/short.c @@ -43,7 +43,7 @@ void test_object_raw_short__oid_shortener_stresstest_git_oid_shorten(void) for (i = 0; i < MAX_OIDS; ++i) { char *oid_text; - sprintf(number_buffer, "%u", (unsigned int)i); + p_snprintf(number_buffer, 16, "%u", (unsigned int)i); git_hash_buf(&oid, number_buffer, strlen(number_buffer)); oid_text = git__malloc(GIT_OID_HEXSZ + 1);