From 92885e110f12aaf3890b4da63a2036cfb0602fc2 Mon Sep 17 00:00:00 2001 From: Mikhail Burakov Date: Tue, 11 Jan 2022 12:20:52 +0100 Subject: Use proper type for pointers difference --- uhttp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uhttp.c') diff --git a/uhttp.c b/uhttp.c index 9e6ec6f..1d7e190 100644 --- a/uhttp.c +++ b/uhttp.c @@ -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; -- cgit v1.2.3