#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 , 20 years ago
| Attachment: | operator-order-in-capacity.diff added |
|---|
comment:2 by , 20 years ago
| Owner: | set to |
|---|
comment:3 by , 20 years ago
| Status: | new → closed |
|---|
comment:4 by , 7 years ago
| Component: | → --Other-- |
|---|
Note:
See TracTickets
for help on using tickets.

Parantheses parentheses!