From: yshang1 Date: Wed, 4 Apr 2007 06:22:45 +0000 (+0000) Subject: Fixed issue for ICC, since ICC does not allow to cast data with volatile qualifier. X-Git-Tag: edk2-stable201903~23365 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=55bfb04e78966791fc5efc69f7266793dccf5109 Fixed issue for ICC, since ICC does not allow to cast data with volatile qualifier. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2532 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/MdePkg/Library/BaseLib/Synchronization.c b/MdePkg/Library/BaseLib/Synchronization.c index a4aa3fb1eb..225453149d 100644 --- a/MdePkg/Library/BaseLib/Synchronization.c +++ b/MdePkg/Library/BaseLib/Synchronization.c @@ -16,8 +16,8 @@ #include "BaseLibInternals.h" -#define SPIN_LOCK_RELEASED ((SPIN_LOCK)1) -#define SPIN_LOCK_ACQUIRED ((SPIN_LOCK)2) +#define SPIN_LOCK_RELEASED ((UINTN) 1) +#define SPIN_LOCK_ACQUIRED ((UINTN) 2) /** Retrieves the architecture specific spin lock alignment requirements for