Re: [edk2] [PATCH v2 0/6] Refine type cast for pointer subtraction

2017-01-24 Thread Laszlo Ersek
On 01/25/17 06:28, Hao Wu wrote: > Please note that this patch is maily for feedback collection and only the > MdeModulePkg part of the series is sent out firstly. > > > V2 refines the commit messages: > For pointer subtraction, the result is of type "ptrdiff_t". According to > the C11 standard

[edk2] [PATCH v2 0/6] Refine type cast for pointer subtraction

2017-01-24 Thread Hao Wu
Please note that this patch is maily for feedback collection and only the MdeModulePkg part of the series is sent out firstly. V2 refines the commit messages: For pointer subtraction, the result is of type "ptrdiff_t". According to the C11 standard (Committee Draft - April 12, 2011): "When two