diff options
| author | Patrick Steinhardt <ps@pks.im> | 2017-05-03 12:38:55 +0200 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2017-05-15 07:34:04 +0200 |
| commit | 8d93a11cffa8199d212124401fdca64b5ae3bacc (patch) | |
| tree | adff296645dc96ba187155aa1b9dadd3eb0e4916 /tests/threads/basic.c | |
| parent | f0ca00e013885479228c4f076989566a2b77221b (diff) | |
| download | libgit2-8d93a11cffa8199d212124401fdca64b5ae3bacc.tar.gz | |
odb: fix printf formatter for git_off_t
The fields `declared_size` and `received_bytes` of the `git_odb_stream`
are both of type `git_off_t` which is defined as a signed integer. When
passing these values to a printf-style string in
`git_odb_stream__invalid_length`, though, we format these as PRIuZ,
which is unsigned.
Fix the issue by using PRIdZ instead, silencing warnings on macOS.
Diffstat (limited to 'tests/threads/basic.c')
0 files changed, 0 insertions, 0 deletions
