Opened 14 years ago

Closed 14 years ago

Last modified 13 months ago

#2661 closed defect

Strange results from Common::computeCapacity

Reported by: SF/madm00se Owned by: sev-
Priority: normal Component: --Other--
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)

operator-order-in-capacity.diff (417 bytes ) - added by SF/madm00se 14 years ago.
Parantheses parentheses!

Download all attachments as: .zip

Change History (5)

by SF/madm00se, 14 years ago

Parantheses parentheses!

comment:1 by sev-, 14 years ago

Thanks, committed.

comment:2 by sev-, 14 years ago

Owner: set to sev-

comment:3 by sev-, 14 years ago

Status: newclosed

comment:4 by digitall, 13 months ago

Component: --Other--
Note: See TracTickets for help on using tickets.