Opened 18 years ago

Closed 18 years ago

Last modified 6 years ago

#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)

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

Download all attachments as: .zip

Change History (5)

by SF/madm00se, 18 years ago

Parantheses parentheses!

comment:1 by sev-, 18 years ago

Thanks, committed.

comment:2 by sev-, 18 years ago

Owner: set to sev-

comment:3 by sev-, 18 years ago

Status: newclosed

comment:4 by digitall, 6 years ago

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