From nobody Fri Dec 27 17:19:42 2024 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 15017508072741018.332948539842; Thu, 3 Aug 2017 02:00:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 433D92095DB8E; Thu, 3 Aug 2017 01:57:50 -0700 (PDT) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DC11A21AEB0B0 for ; Thu, 3 Aug 2017 01:57:49 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Aug 2017 02:00:01 -0700 Received: from shwdeopenpsi168.ccr.corp.intel.com ([10.239.158.121]) by fmsmga005.fm.intel.com with ESMTP; 03 Aug 2017 02:00:00 -0700 X-Original-To: edk2-devel@lists.01.org X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,315,1498546800"; d="scan'208";a="134892598" From: Yonghong Zhu To: edk2-devel@lists.01.org Date: Thu, 3 Aug 2017 16:59:51 +0800 Message-Id: <1501750792-31020-4-git-send-email-yonghong.zhu@intel.com> X-Mailer: git-send-email 2.6.1.windows.1 In-Reply-To: <1501750792-31020-1-git-send-email-yonghong.zhu@intel.com> References: <1501750792-31020-1-git-send-email-yonghong.zhu@intel.com> Subject: [edk2] [Patch V2 3/4] IntelFrameworkModulePkg: Fix Xcode 9 Beta treating 32-bit left shift as undefined X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael D Kinney , Jeff Fan , Liming Gao , Andrew Fish MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Bug: https://bugzilla.tianocore.org/show_bug.cgi?id=3D635 Cc: Liming Gao Cc: Michael D Kinney Cc: Jeff Fan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish Reviewed-by: Liming Gao --- .../BaseUefiTianoCustomDecompressLib.c | 6 ++= +--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressL= ib/BaseUefiTianoCustomDecompressLib.c b/IntelFrameworkModulePkg/Library/Bas= eUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c index e0ba053..5d64f02 100644 --- a/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/Base= UefiTianoCustomDecompressLib.c +++ b/IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/Base= UefiTianoCustomDecompressLib.c @@ -28,18 +28,18 @@ FillBuf ( ) { // // Left shift NumOfBits of bits in advance // - Sd->mBitBuf =3D (UINT32) (Sd->mBitBuf << NumOfBits); + Sd->mBitBuf =3D (UINT32) LShiftU64 (((UINT64)Sd->mBitBuf), NumOfBits); =20 // // Copy data needed in bytes into mSbuBitBuf // while (NumOfBits > Sd->mBitCount) { - - Sd->mBitBuf |=3D (UINT32) (Sd->mSubBitBuf << (NumOfBits =3D (UINT16) (= NumOfBits - Sd->mBitCount))); + NumOfBits =3D (UINT16) (NumOfBits - Sd->mBitCount); + Sd->mBitBuf |=3D (UINT32) LShiftU64 (((UINT64)Sd->mSubBitBuf), NumOfBi= ts); =20 if (Sd->mCompSize > 0) { // // Get 1 byte into SubBitBuf // --=20 2.6.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel