Iron out /WX errors in VC-WIN32.
[openssl.git] / test / siphash_internal_test.c
index 60a2d8dd019d2af2022383d154ef626eb434ca23..d832aab6607aa325be016d0189233c20e1d51bf4 100644 (file)
@@ -16,7 +16,7 @@
 #include "testutil.h"
 #include "internal/siphash.h"
 #include "../crypto/siphash/siphash_local.h"
-#include <internal/nelem.h>
+#include "internal/nelem.h"
 
 static BIO* b_stderr = NULL;
 static BIO* b_stdout = NULL;
@@ -235,10 +235,10 @@ static int test_siphash(int idx)
 
     /* key and in data are 00 01 02 ... */
     for (i = 0; i < sizeof(key); i++)
-        key[i] = i;
+        key[i] = (unsigned char)i;
 
     for (i = 0; i < inlen; i++)
-        in[i] = i;
+        in[i] = (unsigned char)i;
 
     if (!TEST_true(SipHash_Init(&siphash, key, expectedlen, 0, 0)))
         return 0;