Repository navigation
Commit 86b89b4
committed
[TEST] Build the one byte body the way the rest of the file does
The case filled its body with an explicit uint8_t, which made the file need a
fixed-width integer header. IWYU asks for <stdint.h> there and
modernize-deprecated-headers, which this repo enables, rejects that header and
wants <cstdint>; the file cannot satisfy both while the type is spelled out.
GzipIncompressibleData a few lines below already sizes its body with
http_client::Body body(original_size), and only the length matters here: one
byte is too small to hold a gzip header, which is what makes the deflate fail.
Sizing the body the same way needs no element type and no cast, and leaves no
fixed-width type in the file.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent 6b24526 commit 86b89b4
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
1012 | 1011 | | |
1013 | 1012 | | |
1014 | 1013 | | |
1015 | | - | |
| 1014 | + | |
1016 | 1015 | | |
1017 | 1016 | | |
1018 | 1017 | | |
| |||
0 commit comments