From 8122bc5aeff0cbed025a78d888b9a3249d354067 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 23 Dec 2015 17:14:36 +0900 Subject: [PATCH] Fix compile error with gcc ASAN enabled --- tests/nghttp2_session_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/nghttp2_session_test.c b/tests/nghttp2_session_test.c index 8e6f3a72..b18c60ad 100644 --- a/tests/nghttp2_session_test.c +++ b/tests/nghttp2_session_test.c @@ -7634,7 +7634,7 @@ void test_nghttp2_session_keep_closed_stream(void) { nghttp2_session_callbacks callbacks; const size_t max_concurrent_streams = 5; nghttp2_settings_entry iv = {NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, - max_concurrent_streams}; + (uint32_t)max_concurrent_streams}; size_t i; memset(&callbacks, 0, sizeof(callbacks)); @@ -7709,7 +7709,7 @@ void test_nghttp2_session_keep_idle_stream(void) { nghttp2_session_callbacks callbacks; const size_t max_concurrent_streams = 1; nghttp2_settings_entry iv = {NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS, - max_concurrent_streams}; + (uint32_t)max_concurrent_streams}; int i; int32_t stream_id;