mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-28 06:12:53 -06:00
uppsrc: Undefined Behaviour sanitization
git-svn-id: svn://ultimatepp.org/upp/trunk@13032 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
6f9358dbb4
commit
7ab13ffc80
18 changed files with 65 additions and 64 deletions
|
|
@ -17,7 +17,7 @@ void BlockStream::SetBufferSize(dword size)
|
|||
while(size >> (n + 1))
|
||||
n++;
|
||||
pagesize = 1 << n;
|
||||
pagemask = (int64)-1 << n;
|
||||
pagemask = (uint64)-1 << n;
|
||||
if(buffer)
|
||||
delete[] buffer;
|
||||
buffer = new byte[pagesize];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue