From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org 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 7AEE7222CB33F for ; Tue, 26 Dec 2017 00:41:59 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Dec 2017 00:46:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,459,1508828400"; d="scan'208";a="15193222" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 26 Dec 2017 00:46:52 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 26 Dec 2017 00:46:52 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.213]) with mapi id 14.03.0319.002; Tue, 26 Dec 2017 16:46:50 +0800 From: "Gao, Liming" To: Ard Biesheuvel CC: "edk2-devel@lists.01.org" , "Zeng, Star" Thread-Topic: [edk2] [Patch] MdeModulePkg Variable: Update Pointer Minus with UINTN type Thread-Index: AQHTfiS+KEWDVvIZnUKHK8oBfWqYEKNUx5OAgACHrbA= Date: Tue, 26 Dec 2017 08:46:50 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E19885B@SHSMSX104.ccr.corp.intel.com> References: <1514277384-6480-1-git-send-email-liming.gao@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] MdeModulePkg Variable: Update Pointer Minus with UINTN type X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2017 08:41:59 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 QXJkOg0KICBIZXJlIGlzIHRoZSBzaW1wbGVyIHZlcnNpb24uIENvbnZlcnQgcG9pbnRlciB0byBV SU5UTiwgdGhlbiBzdWJ0cmFjdCB0aGVtIHRvIGdldCB0aGUgc2l6ZSwgbGFzdCBjb252ZXJ0IGl0 IHRvIFVJTlQzMi4gDQoNCkF1dGhWYXJTdG9yYWdlLT5TaXplID0gKFVJTlQzMikoKFVJTlROKSBB dXRoU3RhcnRQdHIgLSAoVUlOVE4pIEF1dGhWYXJTdG9yYWdlKTsgDQoNClRoYW5rcw0KTGltaW5n DQo+LS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj5Gcm9tOiBBcmQgQmllc2hldXZlbCBbbWFp bHRvOmFyZC5iaWVzaGV1dmVsQGxpbmFyby5vcmddDQo+U2VudDogVHVlc2RheSwgRGVjZW1iZXIg MjYsIDIwMTcgNDozOSBQTQ0KPlRvOiBHYW8sIExpbWluZyA8bGltaW5nLmdhb0BpbnRlbC5jb20+ DQo+Q2M6IGVkazItZGV2ZWxAbGlzdHMuMDEub3JnOyBaZW5nLCBTdGFyIDxzdGFyLnplbmdAaW50 ZWwuY29tPg0KPlN1YmplY3Q6IFJlOiBbZWRrMl0gW1BhdGNoXSBNZGVNb2R1bGVQa2cgVmFyaWFi bGU6IFVwZGF0ZSBQb2ludGVyIE1pbnVzDQo+d2l0aCBVSU5UTiB0eXBlDQo+DQo+T24gMjYgRGVj ZW1iZXIgMjAxNyBhdCA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