From a06846710a69513d98b72bd1ec99a9e7cfd61083 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Mon, 15 Jul 2013 10:36:55 +0800 Subject: [PATCH] bugfix: HARBOR should be unsigned --- skynet-src/skynet_harbor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skynet-src/skynet_harbor.c b/skynet-src/skynet_harbor.c index a666c699..f188e252 100644 --- a/skynet-src/skynet_harbor.c +++ b/skynet-src/skynet_harbor.c @@ -7,7 +7,7 @@ #include static struct skynet_context * REMOTE = 0; -static int HARBOR = 0; +static unsigned int HARBOR = 0; void skynet_harbor_send(struct remote_message *rmsg, uint32_t source, int session) { @@ -39,7 +39,7 @@ skynet_harbor_message_isremote(uint32_t handle) { void skynet_harbor_init(int harbor) { - HARBOR = harbor << HANDLE_REMOTE_SHIFT; + HARBOR = (unsigned int)harbor << HANDLE_REMOTE_SHIFT; } int