summaryrefslogtreecommitdiffstats
path: root/src/core/common.h
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-04 21:39:54 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-04 21:39:54 +0200
commit8c170a62ee5960bcb752630807101efd67d76e00 (patch)
tree1f8d60c06806a7dc8a5d398ac4282bf32f9b075f /src/core/common.h
parentMerge pull request #738 from erorcun/master (diff)
downloadre3-8c170a62ee5960bcb752630807101efd67d76e00.tar
re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.gz
re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.bz2
re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.lz
re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.xz
re3-8c170a62ee5960bcb752630807101efd67d76e00.tar.zst
re3-8c170a62ee5960bcb752630807101efd67d76e00.zip
Diffstat (limited to 'src/core/common.h')
-rw-r--r--src/core/common.h2
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)
{