From ce641a4c091035e20c00d5be77ef349536482d1c Mon Sep 17 00:00:00 2001 From: ggyy Date: Wed, 24 Nov 2021 22:12:23 +0800 Subject: [PATCH] fix compile error on windows(visual studio 2022) (#1386) --- src/HttpParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpParser.h b/src/HttpParser.h index 8e33335..277b613 100644 --- a/src/HttpParser.h +++ b/src/HttpParser.h @@ -314,7 +314,7 @@ public: } else if (fallback.length()) { unsigned int had = (unsigned int) fallback.length(); - size_t maxCopyDistance = std::min(MAX_FALLBACK_SIZE - fallback.length(), (size_t) length); + size_t maxCopyDistance = std::min(MAX_FALLBACK_SIZE - fallback.length(), (size_t) length); /* We don't want fallback to be short string optimized, since we want to move it */ fallback.reserve(fallback.length() + maxCopyDistance + std::max(MINIMUM_HTTP_POST_PADDING, sizeof(std::string)));