diff options
author | Russell Belfer <rb@github.com> | 2012-04-27 00:04:54 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2012-04-27 00:04:54 +0400 |
commit | 821f6bc7404122260a46796422c011105a33638f (patch) | |
tree | 13a7c69cae57a5804363bc72fc3d10abd7d520d4 /src/attr_file.c | |
parent | 631ba94e0e489d4baf4e289539a9acf084953c32 (diff) |
Fix Win32 warnings
Diffstat (limited to 'src/attr_file.c')
-rw-r--r-- | src/attr_file.c | 3 |
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); |