From 9e403ac6b2d1535259060ac5f83737f17b829ca3 Mon Sep 17 00:00:00 2001 From: Eric House Date: Mon, 9 Feb 2015 06:46:34 -0800 Subject: [PATCH] add assert around the new bit that's -- bitten -- me once already --- xwords4/common/comms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/common/comms.c b/xwords4/common/comms.c index 6cfa61ac5..45600d174 100644 --- a/xwords4/common/comms.c +++ b/xwords4/common/comms.c @@ -237,6 +237,7 @@ static void sendEmptyMsg( CommsCtxt* comms, AddressRecord* rec ); #ifdef DEBUG # define CNO_FMT(buf, cno) \ + XP_ASSERT( 0 == ((cno) & (1 << SERVER_OFFSET))); \ XP_UCHAR (buf)[64]; \ XP_SNPRINTF( (buf), sizeof(buf), "cno: %.4X|%x", \ (cno) & ~CHANNEL_MASK, (cno) & CHANNEL_MASK )