From a58b9d96b4ed0e48f9c78d56facfd6e2c2c0a0d6 Mon Sep 17 00:00:00 2001 From: hhuan13 Date: Mon, 9 Aug 2010 06:28:01 +0000 Subject: Fixed K9 scan issues. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10781 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Include/Base.h | 2 +- MdePkg/Library/BaseLib/GetPowerOfTwo64.c | 4 ++-- MdePkg/Library/BaseLib/MultS64x64.c | 2 +- MdePkg/Library/BaseLib/String.c | 16 ++++++++-------- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'MdePkg') diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index d95fb0b850..6f411b08bc 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -494,7 +494,7 @@ typedef CHAR8 *VA_LIST; @return A pointer to the beginning of a variable argument list. **/ -#define VA_START(Marker, Parameter) (Marker = (VA_LIST) & (Parameter) + _INT_SIZE_OF (Parameter)) +#define VA_START(Marker, Parameter) (Marker = (VA_LIST) ((UINTN) & (Parameter) + _INT_SIZE_OF (Parameter))) /** Returns an argument of a specified type from a variable argument list and updates diff --git a/MdePkg/Library/BaseLib/GetPowerOfTwo64.c b/MdePkg/Library/BaseLib/GetPowerOfTwo64.c index 4623c2a656..3574bc4d3c 100644 --- a/MdePkg/Library/BaseLib/GetPowerOfTwo64.c +++ b/MdePkg/Library/BaseLib/GetPowerOfTwo64.c @@ -1,7 +1,7 @@ /** @file Math worker functions. - Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -40,5 +40,5 @@ GetPowerOfTwo64 ( return 0; } - return LShiftU64 (1, HighBitSet64 (Operand)); + return LShiftU64 (1, (UINTN) HighBitSet64 (Operand)); } diff --git a/MdePkg/Library/BaseLib/MultS64x64.c b/MdePkg/Library/BaseLib/MultS64x64.c index cbeaf02117..229c76ce68 100644 --- a/MdePkg/Library/BaseLib/MultS64x64.c +++ b/MdePkg/Library/BaseLib/MultS64x64.c @@ -38,5 +38,5 @@ MultS64x64 ( IN INT64 Multiplier ) { - return (INT64)MultU64x64 (Multiplicand, Multiplier); + return (INT64)MultU64x64 ((UINT64) Multiplicand, (UINT64) Multiplier); } diff --git a/MdePkg/Library/BaseLib/String.c b/MdePkg/Library/BaseLib/String.c index 2279720951..7821520d2e 100644 --- a/MdePkg/Library/BaseLib/String.c +++ b/MdePkg/Library/BaseLib/String.c @@ -14,17 +14,17 @@ #include "BaseLibInternals.h" -#define QUOTIENT_MAX_UINTN_DIVIDED_BY_10 ((UINTN) -1 / 10) -#define REMAINDER_MAX_UINTN_DIVIDED_BY_10 ((UINTN) -1 % 10) +#define QUOTIENT_MAX_UINTN_DIVIDED_BY_10 ((UINTN) -1 / 10U) +#define REMAINDER_MAX_UINTN_DIVIDED_BY_10 ((UINTN) -1 % 10U) -#define QUOTIENT_MAX_UINTN_DIVIDED_BY_16 ((UINTN) -1 / 16) -#define REMAINDER_MAX_UINTN_DIVIDED_BY_16 ((UINTN) -1 % 16) +#define QUOTIENT_MAX_UINTN_DIVIDED_BY_16 ((UINTN) -1 / 16U) +#define REMAINDER_MAX_UINTN_DIVIDED_BY_16 ((UINTN) -1 % 16U) -#define QUOTIENT_MAX_UINT64_DIVIDED_BY_10 ((UINT64) -1 / 10) -#define REMAINDER_MAX_UINT64_DIVIDED_BY_10 ((UINT64) -1 % 10) +#define QUOTIENT_MAX_UINT64_DIVIDED_BY_10 ((UINT64) -1 / 10U) +#define REMAINDER_MAX_UINT64_DIVIDED_BY_10 ((UINT64) -1 % 10U) -#define QUOTIENT_MAX_UINT64_DIVIDED_BY_16 ((UINT64) -1 / 16) -#define REMAINDER_MAX_UINT64_DIVIDED_BY_16 ((UINT64) -1 % 16) +#define QUOTIENT_MAX_UINT64_DIVIDED_BY_16 ((UINT64) -1 / 16U) +#define REMAINDER_MAX_UINT64_DIVIDED_BY_16 ((UINT64) -1 % 16U) /** Copies one Null-terminated Unicode string to another Null-terminated Unicode -- cgit v1.2.3