diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-06-10 19:47:47 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-06-10 19:47:47 +0200 |
commit | 45c595ab6150792b2b7be9a407c3d30e634e3924 (patch) | |
tree | 141ebee03fb6ef1e75d6075807181d0f6b739852 /erts/emulator/beam | |
parent | c2ff9af2eb8d372af3f6cf8fc2953dc90f9ead78 (diff) | |
download | otp-45c595ab6150792b2b7be9a407c3d30e634e3924.tar.gz otp-45c595ab6150792b2b7be9a407c3d30e634e3924.tar.bz2 otp-45c595ab6150792b2b7be9a407c3d30e634e3924.zip |
erts: Fix undefined shift to msb in erl_process
Diffstat (limited to 'erts/emulator/beam')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 2 | ||||
-rw-r--r-- | erts/emulator/beam/erl_ptab.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index 48f89d2bd7..66f22979ad 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -3509,7 +3509,7 @@ wake_dirty_schedulers(ErtsRunQueue *rq, int one) #endif #define ERTS_NO_USED_RUNQS_SHIFT 16 -#define ERTS_NO_RUNQS_MASK 0xffff +#define ERTS_NO_RUNQS_MASK 0xffffU #if ERTS_MAX_NO_OF_SCHEDULERS > ERTS_NO_RUNQS_MASK # error "Too large amount of schedulers allowed" diff --git a/erts/emulator/beam/erl_ptab.h b/erts/emulator/beam/erl_ptab.h index a5931ffc25..fecfd96ab0 100644 --- a/erts/emulator/beam/erl_ptab.h +++ b/erts/emulator/beam/erl_ptab.h @@ -168,7 +168,7 @@ typedef struct { #define ERTS_PTAB_INVALID_ID(TAG) \ ((Eterm) \ - ((((1 << ERTS_PTAB_ID_DATA_SIZE) - 1) << ERTS_PTAB_ID_DATA_SHIFT) \ + ((((1U << ERTS_PTAB_ID_DATA_SIZE) - 1) << ERTS_PTAB_ID_DATA_SHIFT) \ | (TAG))) #define erts_ptab_is_valid_id(ID) \ |