mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 21:58:12 +08:00
Fix undefined behavior
This commit is contained in:
parent
6e2e68fd08
commit
1df5cbe990
@ -31215,7 +31215,7 @@ typedef struct CodeContext {
|
|||||||
|
|
||||||
#define M2(op1, op2) ((op1) | ((op2) << 8))
|
#define M2(op1, op2) ((op1) | ((op2) << 8))
|
||||||
#define M3(op1, op2, op3) ((op1) | ((op2) << 8) | ((op3) << 16))
|
#define M3(op1, op2, op3) ((op1) | ((op2) << 8) | ((op3) << 16))
|
||||||
#define M4(op1, op2, op3, op4) ((op1) | ((op2) << 8) | ((op3) << 16) | ((op4) << 24))
|
#define M4(op1, op2, op3, op4) ((op1) | ((op2) << 8) | ((op3) << 16) | (((uint32_t)op4) << 24))
|
||||||
|
|
||||||
static BOOL code_match(CodeContext *s, int pos, ...)
|
static BOOL code_match(CodeContext *s, int pos, ...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user