Commit 23a1c4ff authored by sebastian.buchwald1's avatar sebastian.buchwald1
Browse files

Remove undefined behavior

Shifting into the sign bit is undefined behavior, see ISO C99 6.5.7(4).
parent 40957790
......@@ -1269,9 +1269,11 @@ typedef enum {
cc_frame_on_caller_stk = 0x20000000, /**< The method did not allocate an own stack frame, instead the
caller must reserve size on its own stack. */
cc_fpreg_param = 0x40000000, /**< Transmit floating point parameters in registers, else the stack is used. */
cc_bits = (0xFF << 24)/**< The calling convention bits. */
} calling_convention;
/**< The calling convention bits. */
#define cc_bits (0xFF000000)
/** cdecl calling convention */
#define cc_cdecl_set (0)
/** stdcall calling convention */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment