]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fixed K9 scan issues.
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Aug 2010 06:28:01 +0000 (06:28 +0000)
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 9 Aug 2010 06:28:01 +0000 (06:28 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10781 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Base.h
MdePkg/Library/BaseLib/GetPowerOfTwo64.c
MdePkg/Library/BaseLib/MultS64x64.c
MdePkg/Library/BaseLib/String.c

index d95fb0b85068ee82eeadaab2fc3aa4ff07054c78..6f411b08bc1528ca2d2e575eefc656a59c068ccc 100644 (file)
@@ -494,7 +494,7 @@ typedef CHAR8 *VA_LIST;
   @return  A pointer to the beginning of a variable argument list.\r
 \r
 **/\r
-#define VA_START(Marker, Parameter) (Marker = (VA_LIST) & (Parameter) + _INT_SIZE_OF (Parameter))\r
+#define VA_START(Marker, Parameter) (Marker = (VA_LIST) ((UINTN) & (Parameter) + _INT_SIZE_OF (Parameter)))\r
 \r
 /**\r
   Returns an argument of a specified type from a variable argument list and updates \r
index 4623c2a656a40747d146f53a7031b365ef759c08..3574bc4d3c8e5a4bb4416631bbbe11339047076b 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Math worker functions.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -40,5 +40,5 @@ GetPowerOfTwo64 (
     return 0;\r
   }\r
 \r
-  return LShiftU64 (1, HighBitSet64 (Operand));\r
+  return LShiftU64 (1, (UINTN) HighBitSet64 (Operand));\r
 }\r
index cbeaf02117785c737b3b3dcf6f378f7cbbad5c0c..229c76ce6806d549674223b8fe176b6c597ff33a 100644 (file)
@@ -38,5 +38,5 @@ MultS64x64 (
   IN      INT64                     Multiplier\r
   )\r
 {\r
-  return (INT64)MultU64x64 (Multiplicand, Multiplier);\r
+  return (INT64)MultU64x64 ((UINT64) Multiplicand, (UINT64) Multiplier);\r
 }\r
index 2279720951f347bedf65ac529bb3205b5c1cdecc..7821520d2e860dc2f4bf3c6faba0cb6b5366fc7a 100644 (file)
 \r
 #include "BaseLibInternals.h"\r
 \r
-#define QUOTIENT_MAX_UINTN_DIVIDED_BY_10      ((UINTN) -1 / 10)\r
-#define REMAINDER_MAX_UINTN_DIVIDED_BY_10    ((UINTN) -1 % 10)\r
+#define QUOTIENT_MAX_UINTN_DIVIDED_BY_10      ((UINTN) -1 / 10U)\r
+#define REMAINDER_MAX_UINTN_DIVIDED_BY_10    ((UINTN) -1 % 10U)\r
 \r
-#define QUOTIENT_MAX_UINTN_DIVIDED_BY_16      ((UINTN) -1 / 16)\r
-#define REMAINDER_MAX_UINTN_DIVIDED_BY_16    ((UINTN) -1 % 16)\r
+#define QUOTIENT_MAX_UINTN_DIVIDED_BY_16       ((UINTN) -1 / 16U)\r
+#define REMAINDER_MAX_UINTN_DIVIDED_BY_16     ((UINTN) -1 % 16U)\r
 \r
-#define QUOTIENT_MAX_UINT64_DIVIDED_BY_10      ((UINT64) -1 / 10)\r
-#define REMAINDER_MAX_UINT64_DIVIDED_BY_10    ((UINT64) -1 % 10)\r
+#define QUOTIENT_MAX_UINT64_DIVIDED_BY_10      ((UINT64) -1 / 10U)\r
+#define REMAINDER_MAX_UINT64_DIVIDED_BY_10    ((UINT64) -1 % 10U)\r
 \r
-#define QUOTIENT_MAX_UINT64_DIVIDED_BY_16      ((UINT64) -1 / 16)\r
-#define REMAINDER_MAX_UINT64_DIVIDED_BY_16    ((UINT64) -1 % 16)\r
+#define QUOTIENT_MAX_UINT64_DIVIDED_BY_16      ((UINT64) -1 / 16U)\r
+#define REMAINDER_MAX_UINT64_DIVIDED_BY_16    ((UINT64) -1 % 16U)\r
 \r
 /**\r
   Copies one Null-terminated Unicode string to another Null-terminated Unicode\r