diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2006-07-11 11:57:11 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2006-07-11 11:57:11 +0000 |
commit | 1205ea5f9792e62ac10c82824a29ed64f9793143 (patch) | |
tree | 860982fc54dea2403b3da01fd6f64c5fee6d4e56 /test/harness/mainsha1.c | |
parent | 1b35564dcf300e1a007d14529996286b538b5f81 (diff) | |
download | compcert-1205ea5f9792e62ac10c82824a29ed64f9793143.tar.gz compcert-1205ea5f9792e62ac10c82824a29ed64f9793143.zip |
Cast des litteraux de chaine en unsigned char *
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@48 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'test/harness/mainsha1.c')
-rw-r--r-- | test/harness/mainsha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/harness/mainsha1.c b/test/harness/mainsha1.c index 2364076e..845a46ae 100644 --- a/test/harness/mainsha1.c +++ b/test/harness/mainsha1.c @@ -39,12 +39,12 @@ static void do_test(unsigned char * txt, unsigned char * expected_output) * 8498 3E44 1C3B D26E BAAE 4AA1 F951 29E5 E546 70F1 */ -unsigned char * test_input_1 = "abc"; +unsigned char * test_input_1 = (unsigned char *) "abc"; unsigned char test_output_1[20] = { 0xA9, 0x99, 0x3E, 0x36, 0x47, 0x06, 0x81, 0x6A, 0xBA, 0x3E , 0x25, 0x71, 0x78, 0x50, 0xC2, 0x6C, 0x9C, 0xD0, 0xD8, 0x9D }; -unsigned char * test_input_2 = +unsigned char * test_input_2 = (unsigned char *) "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"; unsigned char test_output_2[20] = { 0x84, 0x98, 0x3E, 0x44, 0x1C, 0x3B, 0xD2, 0x6E, 0xBA, 0xAE, |