Author: orbiter Date: 2006-03-10 21:45:14 +0100 (Fri, 10 Mar 2006) New Revision: 1876
Modified: trunk/source/de/anomic/kelondro/kelondroMScoreCluster.java Log: quick-fix for http://www.yacy-forum.de/viewtopic.php?p=18805#18805 Modified: trunk/source/de/anomic/kelondro/kelondroMScoreCluster.java =================================================================== --- trunk/source/de/anomic/kelondro/kelondroMScoreCluster.java 2006-03-10 18:34:53 UTC (rev 1875) +++ trunk/source/de/anomic/kelondro/kelondroMScoreCluster.java 2006-03-10 20:45:14 UTC (rev 1876) @@ -97,7 +97,7 @@ } // fix out-of-ranges if (l > Integer.MAX_VALUE) return Integer.MAX_VALUE; - if (l < Integer.MIN_VALUE) return Integer.MIN_VALUE; + if (l < 0) return 0; return (int) l; } catch (Exception e) { // try it lex @@ -109,6 +109,8 @@ c += plainByteArray[(byte) s.charAt(i)]; } for (int i = len; i < 5; i++) c <<= 6; + if (c > Integer.MAX_VALUE) return Integer.MAX_VALUE; + if (c < 0) return 0; return c; } } _______________________________________________ YaCy-svn mailing list [email protected] http://lists.berlios.de/mailman/listinfo/yacy-svn
