You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/09/29 20:46:22 UTC
svn commit: r292503 -
/lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java
Author: cutting
Date: Thu Sep 29 11:46:20 2005
New Revision: 292503
URL: http://svn.apache.org/viewcvs?rev=292503&view=rev
Log:
Fix for when unread > Integer.MAX_VALUE.
Modified:
lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java
Modified: lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java?rev=292503&r1=292502&r2=292503&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java (original)
+++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/mapred/MapOutputFile.java Thu Sep 29 11:46:20 2005
@@ -119,7 +119,7 @@
try {
byte[] buffer = new byte[8192];
while (unread > 0) {
- int bytesToRead = Math.min((int) unread, buffer.length);
+ int bytesToRead = (int)Math.min(unread, buffer.length);
in.readFully(buffer, 0, bytesToRead);
out.write(buffer, 0, bytesToRead);
unread -= bytesToRead;