fix typo in hash function

git-svn-id: https://hyracks.googlecode.com/svn/branches/fullstack_genomix@3268 123451ca-8445-de46-9d55-352943316053
diff --git a/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java b/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java
index 53eafaa..231470a 100644
--- a/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java
+++ b/genomix/genomix-hyracks/src/main/java/edu/uci/ics/genomix/data/std/accessors/KmerHashPartitioncomputerFactory.java
@@ -24,9 +24,6 @@
 			@Override

 			public int partition(IFrameTupleAccessor accessor, int tIndex,

 					int nParts) {

-				if (nParts == 1) {

-					return 0;

-				}

 				int startOffset = accessor.getTupleStartOffset(tIndex);

 				int fieldOffset = accessor.getFieldStartOffset(tIndex, 0);

 				int slotLength = accessor.getFieldSlotsLength();

@@ -37,7 +34,7 @@
 				int hash = hashBytes(buf.array(), startOffset + fieldOffset

 						+ slotLength, fieldLength);

 				if (hash < 0){

-					hash = (-hash+1);

+					hash = -(hash+1);

 				}

 

 				return hash % nParts;