From: Karthik Nayak Date: Wed, 15 Jan 2025 16:17:52 GMT Subject: Re: [PATCH v2 07/10] git-zlib: cast away potential constness of `next_in` pointer Message-ID: In-Reply-To: <20250114-b4-pks-compat-drop-uncompress2-v2-7-614a2158e34e@pks.im> Patrick Steinhardt writes: > The `struct git_zstream::next_in` variable points to the input data that s/that// > and is used in combination with `struct z_stream::next_in`. While that > latter field is not marked as a constant in zlib, it is marked as such > in zlib-ng. This causes a couple of compiler errors when we try to > assign these fields to one another due to mismatching constness. > > Fix the issue by casting away the potential constness of `next_in`. [snip]