]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseSynchronizationLib/SynchronizationMsc.c
Refine code.
[mirror_edk2.git] / MdePkg / Library / BaseSynchronizationLib / SynchronizationMsc.c
index 90524a1017ae7c927f9893c73ecb1bf296f42611..895acdc39fac47012e599f25b2c9cd667c857075 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation of synchronization 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
@@ -383,7 +383,7 @@ InterlockedCompareExchangePointer (
 {\r
   UINT8  SizeOfValue;\r
 \r
-  SizeOfValue = sizeof (*Value);\r
+  SizeOfValue = (UINT8) sizeof (*Value);\r
 \r
   switch (SizeOfValue) {\r
     case sizeof (UINT32):\r