diff options
author | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-01 08:38:08 +0000 |
---|---|---|
committer | ydong10 <ydong10@6f19259b-4bc3-4df7-8a09-765794883524> | 2011-09-01 08:38:08 +0000 |
commit | 3857083c074c482b3a96054f3ad38d9d95a385d9 (patch) | |
tree | d98b5a2977844f15b235c3729f4d6606dcb928c5 /EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h | |
parent | 41ff10dc06ae11f5e47094c67f1160a29dd8851c (diff) | |
download | edk2-3857083c074c482b3a96054f3ad38d9d95a385d9.tar.gz edk2-3857083c074c482b3a96054f3ad38d9d95a385d9.tar.bz2 edk2-3857083c074c482b3a96054f3ad38d9d95a385d9.zip |
Refine code to make code run more safely.
Signed-off-by:ydong10
Reviewed-by:rsun3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12250 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h')
-rw-r--r-- | EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h b/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h index 5697371b8a..94b93ea4d1 100644 --- a/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h +++ b/EdkCompatibilityPkg/Foundation/Include/EfiStdArg.h @@ -137,7 +137,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
|