From 94fc229c442b503295487ce30bdc644c5b37b9de Mon Sep 17 00:00:00 2001 From: Johan Jansen Date: Thu, 26 Sep 2019 22:20:33 +0200 Subject: [PATCH] Add missing explicit const_cast --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 0b156ec..052d48e 100644 --- a/httplib.h +++ b/httplib.h @@ -1267,7 +1267,7 @@ inline bool compress(std::string &content) { if (ret != Z_OK) { return false; } strm.avail_in = content.size(); - strm.next_in = reinterpret_cast(content.data()); + strm.next_in = const_cast(reinterpret_cast(content.data())); std::string compressed;