r38710 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38709‎ | r38710 | r38711 >
Date:13:51, 6 August 2008
Author:tstarling
Status:old
Tags:
Comment:
Workaround for bug 14610 (reproducible crash on 64-bit architectures) as suggested on http://bugs.sun.com/view_bug.do?bug_id=6732194
Modified paths:
  • /trunk/cortado/src/com/fluendo/jheora/FrArray.java (modified) (history)

Diff [purge]

Index: trunk/cortado/src/com/fluendo/jheora/FrArray.java
@@ -196,7 +196,7 @@
197197 long ret;
198198 if (BitsLeft == 0){
199199 /* Toggle the value. */
200 - NextBit = (byte) ( NextBit == 1 ? 0 : 1);
 200+ NextBit = NextBit = (byte) (NextBit ^ 1);
201201
202202 /* Read next run */
203203 init();
@@ -234,7 +234,7 @@
235235
236236 if (BitsLeft == 0){
237237 /* Toggle the value. */
238 - NextBit = (byte) ( NextBit == 1 ? 0 : 1);
 238+ NextBit = (byte) (NextBit ^ 1);
239239
240240 /* Read next run */
241241 init();

Follow-up revisions

RevisionCommit summaryAuthorDate
r38715Update Cortado to r38710 to fix bug 14610 (crash on 64-bit)tstarling14:18, 6 August 2008

Status & tagging log