mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject svn commit: r928715 - /lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java
Date Mon, 29 Mar 2010 11:07:47 GMT
Author: srowen
Date: Mon Mar 29 11:07:46 2010
New Revision: 928715

URL: http://svn.apache.org/viewvc?rev=928715&view=rev
Log:
Re-fix masking of top bit expression

Modified:
    lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java

Modified: lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java?rev=928715&r1=928714&r2=928715&view=diff
==============================================================================
--- lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java
(original)
+++ lucene/mahout/trunk/core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ItemIDIndexMapper.java
Mon Mar 29 11:07:46 2010
@@ -45,7 +45,7 @@ public final class ItemIDIndexMapper ext
   }
   
   static int idToIndex(long itemID) {
-    return 0x7FFFFFFF & (int) itemID ^ (int) (itemID >>> 32);
+    return 0x7FFFFFFF & ((int) itemID ^ (int) (itemID >>> 32));
   }
   
 }
\ No newline at end of file



Mime
View raw message