Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
quick-fix for http://www.yacy-forum.de/viewtopic.php?p=18805#18805
orbiter69d26045ebdf
diff --git a/source/de/anomic/kelondro/kelondroMScoreCluster.java b/source/de/anomic/kelondro/kelondroMScoreCluster.javaindex 16c0d6581..e67d61e89 100644--- a/source/de/anomic/kelondro/kelondroMScoreCluster.java+++ b/source/de/anomic/kelondro/kelondroMScoreCluster.java@@ -97,7 +97,7 @@ public final class kelondroMScoreCluster {}// fix out-of-rangesif (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 @@ public final class kelondroMScoreCluster {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;}}