From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 1046681EFC for ; Mon, 23 Jan 2017 21:53:42 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP; 23 Jan 2017 21:53:41 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,277,1477983600"; d="scan'208";a="1116948639" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 23 Jan 2017 21:53:41 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 23 Jan 2017 21:53:41 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 23 Jan 2017 21:53:40 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.59]) by shsmsx102.ccr.corp.intel.com ([169.254.2.88]) with mapi id 14.03.0248.002; Tue, 24 Jan 2017 13:53:38 +0800 From: "Wu, Hao A" To: Ard Biesheuvel , Laszlo Ersek CC: "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH 0/1] Refine casting expression result to bigger size Thread-Index: AQHSdHrqDdO4B/N59EuqurqWg+CDn6FFYOmAgACm0oCAARNc0A== Date: Tue, 24 Jan 2017 05:53:38 +0000 Message-ID: References: <1485067434-12064-1-git-send-email-hao.a.wu@intel.com> <08dcec9c-48bf-1878-dcb9-60d28441064f@redhat.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/1] Refine casting expression result to bigger size X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2017 05:53:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBcmQgQmllc2hldXZlbCBbbWFp bHRvOmFyZC5iaWVzaGV1dmVsQGxpbmFyby5vcmddDQo+IFNlbnQ6IFR1ZXNkYXksIEphbnVhcnkg MjQsIDIwMTcgNDo1OCBBTQ0KPiBUbzogTGFzemxvIEVyc2VrDQo+IENjOiBXdSwgSGFvIEE7IGVk azItZGV2ZWxAbGlzdHMuMDEub3JnDQo+IFN1YmplY3Q6IFJlOiBbZWRrMl0gW1BBVENIIDAvMV0g UmVmaW5lIGNhc3RpbmcgZXhwcmVzc2lvbiByZXN1bHQgdG8gYmlnZ2VyIHNpemUNCj4gDQo+IE9u IDIzIEphbnVhcnkgMjAxNyBhdCAxMTowMSwgTGFzemxvIEVyc2VrIDxsZXJzZWtAcmVkaGF0LmNv bT4gd3JvdGU6DQo+ID4gT24gMDEvMjIvMTcgMDc6NDMsIEhhbyBXdSB3cm90ZToNCj4gPj4gUGxl YXNlIG5vdGUgdGhhdCB0aGlzIHBhdGNoIGlzIG1haWx5IGZvciBmZWVkYmFjayBjb2xsZWN0aW9u IGFuZCB0aGUgcGF0Y2gNCj4gPj4gb25seSBjb3ZlcnMgTWRlUGtnLiBXZSBhcmUgd29ya2luZyBv biBwYXRjaGVzIGZvciBvdGhlciBwYWNrYWdlcy4NCj4gPj4NCj4gPj4NCj4gPj4gVGhlcmUgYXJl IGNhc2VzIHRoYXQgdGhlIG9wZXJhbmRzIG9mIGFuIGV4cHJlc3Npb24gYXJlIGFsbCB3aXRoIHJh bmsgbGVzcw0K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