From 332bacd4eef77555f4607d8bcb2974fe98cacac9 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@d8a302eb-03bc-478d-80e4-98257eca68ef> Date: Thu, 3 Jul 2014 19:01:50 +0000 Subject: [PATCH] chunks have shorts git-svn-id: svn://elaine/murooma/trunk@55 d8a302eb-03bc-478d-80e4-98257eca68ef --- server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.cpp b/server.cpp index f7f1720f..8d2c4287 100644 --- a/server.cpp +++ b/server.cpp @@ -42,7 +42,7 @@ int main () { { c[0] = cin.get(); c[1] = cin.get(); - chunk.payload[idx++] = c[0] + (c[1] << 8); + chunk.payload[idx++] = (int)c[0] + ((int)c[1] << 8); if (idx == WIRE_CHUNK_SIZE) { timeval now;