From: brarcher Date: Mon, 23 Jun 2014 04:13:46 +0000 (+0000) Subject: Cast to ck_result_ctx in test_pack_ctx_limit X-Git-Tag: 0.10.0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f05476b498cc53ebb321b8ba0624d9b050db01ca;p=check Cast to ck_result_ctx in test_pack_ctx_limit This change was necessary to get Check compiling on a c++ compiler. git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1165 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/tests/check_check_pack.c b/tests/check_check_pack.c index 596d40e..8dfd265 100644 --- a/tests/check_check_pack.c +++ b/tests/check_check_pack.c @@ -157,7 +157,7 @@ START_TEST(test_pack_ctx_limit) CtxMsg *cmsgp = NULL; char *buf; - cmsg.ctx = -1; + cmsg.ctx = (enum ck_result_ctx)-1; pack (CK_MSG_CTX, &buf, (CheckMsg *) &cmsg); pack (CK_MSG_CTX, &buf, (CheckMsg *) cmsgp); }