]> granicus.if.org Git - check/commitdiff
Cast to ck_result_ctx in test_pack_ctx_limit
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:46 +0000 (04:13 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Mon, 23 Jun 2014 04:13:46 +0000 (04:13 +0000)
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

index 596d40e9086dc101aa0e7a2f975780630745840f..8dfd2658a14b0b06778b48564d7dd32d4dbdbc16 100644 (file)
@@ -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);
 }