Opened 13 years ago

Closed 13 years ago

Last modified 10 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 13 years ago.
Parantheses parentheses!

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by SF/madm00se

Parantheses parentheses!

comment:1 Changed 13 years ago by sev-

Thanks, committed.

comment:2 Changed 13 years ago by sev-

Owner: set to sev-

comment:3 Changed 13 years ago by sev-

Status: newclosed

comment:4 Changed 10 months ago by digitall

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