#2661 closed defect
Strange results from Common::computeCapacity
Reported by: | SF/madm00se | Owned by: | sev- |
---|---|---|---|
Priority: | normal | Component: | --Other-- |
Version: | Keywords: | ||
Cc: | Game: |
Description
Common::computeCapacity says
return (len + 32 - 1) & ~0x1F - 1;
which actually means
return (len + 32 - 1) & (~0x1F - 1);
instead of the intended
return ((len + 32 - 1) & ~0x1F) - 1;
Ticket imported from: #1503718. Ticket imported from: bugs/2661.
Attachments (1)
Change History (5)
by , 18 years ago
Attachment: | operator-order-in-capacity.diff added |
---|
comment:2 by , 18 years ago
Owner: | set to |
---|
comment:3 by , 18 years ago
Status: | new → closed |
---|
comment:4 by , 6 years ago
Component: | → --Other-- |
---|
Note:
See TracTickets
for help on using tickets.
Parantheses parentheses!