diff options
| author | Mikhail Burakov <mburakov@mailbox.org> | 2022-01-11 12:20:52 +0100 |
|---|---|---|
| committer | Mikhail Burakov <mburakov@mailbox.org> | 2022-01-11 12:20:52 +0100 |
| commit | 92885e110f12aaf3890b4da63a2036cfb0602fc2 (patch) | |
| tree | 1fa3beb3264c72cfdbd867387b0fc8873ae86fb0 | |
| parent | cb13bc78683859621d5280c72add307b4b1e313d (diff) | |
Use proper type for pointers difference
| -rw-r--r-- | uhttp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -167,7 +167,7 @@ static _Bool UhttpOnFieldValue(struct Uhttp* uhttp, char* glyph) { static _Bool UhttpOnBody(struct Uhttp* uhttp, char* glyph) { if (!uhttp->public.body) uhttp->public.body = glyph; - ssize_t body_size = glyph - uhttp->public.body + 1; + ptrdiff_t body_size = glyph - uhttp->public.body + 1; if ((size_t)body_size == uhttp->public.body_size) uhttp->parser.state = UhttpOnStopped; return 1; |
