diff --git a/tools/stress/src/org/apache/cassandra/stress/generate/DistributionBoundApache.java b/tools/stress/src/org/apache/cassandra/stress/generate/DistributionBoundApache.java index 23ce3e9c66..db077a53b9 100644 --- a/tools/stress/src/org/apache/cassandra/stress/generate/DistributionBoundApache.java +++ b/tools/stress/src/org/apache/cassandra/stress/generate/DistributionBoundApache.java @@ -61,7 +61,7 @@ public class DistributionBoundApache extends Distribution private static long bound(long min, long max, double val) { long r = (long) val; - if ((r >= min) & (r <= max)) + if ((r >= min) && (r <= max)) return r; if (r < min) return min; @@ -72,7 +72,7 @@ public class DistributionBoundApache extends Distribution private static double boundDouble(long min, long max, double r) { - if ((r >= min) & (r <= max)) + if ((r >= min) && (r <= max)) return r; if (r < min) return min;