Fix some sanitizer errors, improve POSIX streamer

This commit is contained in:
eray orçunus
2020-10-04 22:39:54 +03:00
parent ea4007a13c
commit 8c170a62ee
10 changed files with 301 additions and 158 deletions

View File

@@ -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)
{