Skip to content

Commit 6d83023

Browse files
committed
Fixed warning
1 parent 89440ec commit 6d83023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ TEST(YahooRedirectTest, Redirect) {
536536
EXPECT_EQ(200, res->status);
537537
}
538538

539-
TEST(Https2HttpRedirectTest, Redirect) {
539+
TEST(HttpsToHttpRedirectTest, Redirect) {
540540
httplib::SSLClient cli("httpbin.org");
541541
cli.follow_location(true);
542542
auto res = cli.Get("/redirect-to?url=http%3A%2F%2Fwww.google.com&status_code=302");
@@ -637,7 +637,7 @@ class ServerTest : public ::testing::Test {
637637
size_t DATA_CHUNK_SIZE = 4;
638638
const auto &d = *data;
639639
auto out_len = std::min(static_cast<size_t>(length), DATA_CHUNK_SIZE);
640-
sink(&d[offset], out_len);
640+
sink(&d[static_cast<size_t>(offset)], out_len);
641641
},
642642
[data] { delete data; });
643643
})

0 commit comments

Comments
 (0)