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

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-04-27 00:04:54 +0400
committerRussell Belfer <rb@github.com>2012-04-27 00:04:54 +0400
commit821f6bc7404122260a46796422c011105a33638f (patch)
tree13a7c69cae57a5804363bc72fc3d10abd7d520d4 /src/attr_file.c
parent631ba94e0e489d4baf4e289539a9acf084953c32 (diff)
Fix Win32 warnings
Diffstat (limited to 'src/attr_file.c')
-rw-r--r--src/attr_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/attr_file.c b/src/attr_file.c
index 650b58fcc..25c21b1fd 100644
--- a/src/attr_file.c
+++ b/src/attr_file.c
@@ -403,7 +403,8 @@ int git_attr_fnmatch__parse(
/* given an unrooted fullpath match from a file inside a repo,
* prefix the pattern with the relative directory of the source file
*/
- spec->pattern = git_pool_malloc(pool, sourcelen + spec->length + 1);
+ spec->pattern = git_pool_malloc(
+ pool, (uint32_t)(sourcelen + spec->length + 1));
if (spec->pattern) {
memcpy(spec->pattern, source, sourcelen);
memcpy(spec->pattern + sourcelen, pattern, spec->length);