git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7526
6f19259b-4bc3-4df7-8a09-
765794883524
@return The value specified by StatusCode with the highest bit set.\r
\r
**/\r
@return The value specified by StatusCode with the highest bit set.\r
\r
**/\r
-#define ENCODE_ERROR(StatusCode) (MAX_BIT | (StatusCode))\r
+#define ENCODE_ERROR(StatusCode) ((RETURN_STATUS)(MAX_BIT | (StatusCode)))\r
\r
/**\r
Produces a RETURN_STATUS code with the highest bit clear. \r
\r
/**\r
Produces a RETURN_STATUS code with the highest bit clear. \r
@return The value specified by StatusCode with the highest bit clear.\r
\r
**/\r
@return The value specified by StatusCode with the highest bit clear.\r
\r
**/\r
-#define ENCODE_WARNING(StatusCode) (StatusCode)\r
+#define ENCODE_WARNING(StatusCode) ((RETURN_STATUS)(StatusCode))\r
\r
/**\r
Returns TRUE if a specified RETURN_STATUS code is an error code. \r
\r
/**\r
Returns TRUE if a specified RETURN_STATUS code is an error code. \r
@retval FALSE The high bit of StatusCode is clear.\r
\r
**/\r
@retval FALSE The high bit of StatusCode is clear.\r
\r
**/\r
-#define RETURN_ERROR(StatusCode) ((INTN) (StatusCode) < 0)\r
+#define RETURN_ERROR(StatusCode) (((RETURN_STATUS)(StatusCode)) < 0)\r
\r
///\r
/// The operation completed successfully.\r
\r
///\r
/// The operation completed successfully.\r