Received: from eggs.gnu.org ([2001:4830:134:3::10]:36556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apdd7-00086V-9Q for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:19:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apdd2-0000Q6-AF for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:19:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50489) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apdd2-0000Q2-4c for qemu-devel@nongnu.org; Mon, 11 Apr 2016 11:19:52 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A7DA664D01 for ; Mon, 11 Apr 2016 15:19:51 +0000 (UTC) From: Gerd Hoffmann Date: Mon, 11 Apr 2016 17:19:48 +0200 Message-Id: <1460387988-30034-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] virtio-input: add parenthesis to const_le32 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , "Michael S. Tsirkin" Signed-off-by: Gerd Hoffmann --- include/hw/virtio/virtio-input.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hw/virtio/virtio-input.h b/include/hw/virtio/virtio-input.h index af1c207..6d81c7c 100644 --- a/include/hw/virtio/virtio-input.h +++ b/include/hw/virtio/virtio-input.h @@ -15,10 +15,10 @@ typedef struct virtio_input_event virtio_input_event; #if defined(HOST_WORDS_BIGENDIAN) # define const_le32(_x) \ - (((_x & 0x000000ffU) << 24) | \ - ((_x & 0x0000ff00U) << 8) | \ - ((_x & 0x00ff0000U) >> 8) | \ - ((_x & 0xff000000U) >> 24)) + ((((_x) & 0x000000ffU) << 24) | \ + (((_x) & 0x0000ff00U) << 8) | \ + (((_x) & 0x00ff0000U) >> 8) | \ + (((_x) & 0xff000000U) >> 24)) # define const_le16(_x) \ (((_x & 0x00ff) << 8) | \ ((_x & 0xff00) >> 8)) -- 1.8.3.1