From a41689145453eb90368a00e0f158a0280551aa31 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 28 Oct 2013 21:48:59 +0900 Subject: [PATCH] tests: Fix test error on 32-bit system --- tests/nghttp2_session_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/nghttp2_session_test.c b/tests/nghttp2_session_test.c index be69a935..6435175d 100644 --- a/tests/nghttp2_session_test.c +++ b/tests/nghttp2_session_test.c @@ -3499,7 +3499,8 @@ void test_nghttp2_session_set_option(void) NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS, &sszval, sizeof(sszval))); CU_ASSERT(sszval == - session->remote_settings[NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS]); + (ssize_t)session-> + remote_settings[NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS]); sszval = 0; CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT == @@ -3508,12 +3509,12 @@ void test_nghttp2_session_set_option(void) NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS, &sszval, sizeof(sszval))); - intval = 100; + charval = 100; CU_ASSERT(NGHTTP2_ERR_INVALID_ARGUMENT == nghttp2_session_set_option (session, NGHTTP2_OPT_PEER_MAX_CONCURRENT_STREAMS, - &intval, sizeof(intval))); + &charval, sizeof(charval))); nghttp2_session_del(session); }