From f05476b498cc53ebb321b8ba0624d9b050db01ca Mon Sep 17 00:00:00 2001 From: brarcher Date: Mon, 23 Jun 2014 04:13:46 +0000 Subject: [PATCH] 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 --- tests/check_check_pack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.40.0