Experimental: Fix all signed/unsigned warnings

This commit is contained in:
Alex Hultman
2020-11-30 23:00:36 +01:00
parent 2530872a1b
commit ad0a961430
15 changed files with 58 additions and 54 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ static inline size_t formatMessage(char *dst, const char *src, size_t length, Op
char mask[4];
if (!isServer) {
dst[1] |= 0x80;
uint32_t random = rand();
uint32_t random = (uint32_t) rand();
memcpy(mask, &random, 4);
memcpy(dst + headerLength, &random, 4);
headerLength += 4;