diff options
| author | eray orçunus <erayorcunus@gmail.com> | 2020-10-04 22:39:54 +0300 |
|---|---|---|
| committer | eray orçunus <erayorcunus@gmail.com> | 2020-10-04 22:39:54 +0300 |
| commit | 8c170a62ee5960bcb752630807101efd67d76e00 (patch) | |
| tree | 1f8d60c06806a7dc8a5d398ac4282bf32f9b075f /src/core/common.h | |
| parent | Merge pull request #738 from erorcun/master (diff) | |
| download | re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.gz | |
Fix some sanitizer errors, improve POSIX streamer
Diffstat (limited to 'src/core/common.h')
| -rw-r--r-- | src/core/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/common.h b/src/core/common.h index ef3da265..48b20884 100644 --- a/src/core/common.h +++ b/src/core/common.h @@ -106,7 +106,7 @@ typedef uint16_t wchar; inline uint32 dpb(uint32 b, uint32 p, uint32 s, uint32 w) { uint32 m = MASK(p,s); - return w & ~m | b<<p & m; + return (w & ~m) | ((b<<p) & m); } inline uint32 ldb(uint32 p, uint32 s, uint32 w) { |
