diff options
| author | Patrick Steinhardt <ps@pks.im> | 2015-11-24 10:18:58 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2015-12-01 09:02:47 +0100 |
| commit | cb1cb24ca9588e43edfb8b37e008c2e83af580af (patch) | |
| tree | 16ae98aa4378f1ebd31f01536bd2184a68013bb8 /include/git2/sys/hashsig.h | |
| parent | 337b2b08f46ea77d61fa66657ad62d8702bc233a (diff) | |
| download | libgit2-cb1cb24ca9588e43edfb8b37e008c2e83af580af.tar.gz | |
blame: use size_t for line counts in git_blame_hunk
It is not unreasonable to have versioned files with a line count
exceeding 2^16. Upon blaming such files we fail to correctly keep
track of the lines as `git_blame_hunk` stores them in `uint16_t`
fields.
Fix this by converting the line fields of `git_blame_hunk` to
`size_t`. Add test to verify behavior.
Diffstat (limited to 'include/git2/sys/hashsig.h')
0 files changed, 0 insertions, 0 deletions
