Skip to content

Commit

Permalink
CX2 returns signed shorts
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffclick committed Nov 15, 2013
1 parent 3335ae8 commit f715873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/water/fvec/CX2Chunk.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public CX2Chunk(long[] ls, int xs[], int len2, int len) {
private int at_impl(int idx) {
int y = _last; // Read once; racy 1-entry cache
int x = UDP.get2(_mem,y+0)&0xFFFF;
if( idx == x ) return UDP.get2(_mem,y+2)&0xFFFF;
if( idx == x ) return UDP.get2(_mem,y+2);
if( idx > x && y < _mem.length && idx < UDP.get2(_mem,y+4) ) return 0;

int lo=0, hi = (_mem.length-OFF)>>>2;
Expand Down

0 comments on commit f715873

Please sign in to comment.