This is about
edk2/MdeModulePkg/Core/Dxe/Image

On 07.10.2012, at 13:08, Sergey Isakov <isakov...@bk.ru> wrote:

> Dear sirs,
> 
> The follow warning
> --------------
> image.c(288) : warning C6297: Arithmetic overflow:  32-bit value is shifted, 
> then cast to 64-bit value.  Results might not be an expected value.
> --------------
> It means that if we are using the macro 
> A = EFI_PAGES_TO_SIZE(N);
> then the result will be same size as an argument. For example, if 
> UINT16 N;
> then the result will be restricted to 16 bit - not as expected.
> So I propose to change the definition of the macro in UefiBaseType.h to be 
> the follow
> ---------------
> #define EFI_PAGES_TO_SIZE(Pages)  (((UINTN)Pages) << EFI_PAGE_SHIFT)
> ---------------
>  
> Or check all sources for a size of argument.
> Sergey
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev_______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to