mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
Patch #1503718: "Strange results from Common::computeCapacity"
svn-id: r22998
This commit is contained in:
parent
eca46382d5
commit
5b1aaf4ea0
@ -40,7 +40,7 @@ static int computeCapacity(int len) {
|
||||
// grows a bit).
|
||||
// Finally, we subtract 1 to compensate for the trailing zero byte.
|
||||
len += 16;
|
||||
return (len + 32 - 1) & ~0x1F - 1;
|
||||
return ((len + 32 - 1) & ~0x1F) - 1;
|
||||
}
|
||||
|
||||
String::String(const char *str, int len, int capacity)
|
||||
|
Loading…
x
Reference in New Issue
Block a user