good patch
[sbp.git] / src / edu / berkeley / sbp / util / IntegerTopology.java
index e9f01df..cac19e9 100644 (file)
@@ -9,8 +9,8 @@ import edu.berkeley.sbp.*;
 /** implementation of <tt>Topology</tt> for any class for which there is a mapping to the <tt>int</tt>s */
 public class IntegerTopology<V extends IntegerTopology.IntegerMappable> implements Topology<V> {
     private final Range.Set rs;
 /** implementation of <tt>Topology</tt> for any class for which there is a mapping to the <tt>int</tt>s */
 public class IntegerTopology<V extends IntegerTopology.IntegerMappable> implements Topology<V> {
     private final Range.Set rs;
-
-    public Range.Set getRanges() { return rs; /*FIXME: copy?*/ }
+    
+    public Range.Set getRanges()         { return new Range.Set(rs); }
 
     public IntegerTopology()             { this(new Range.Set()); }
     public IntegerTopology(V v)          { this(v.toInt()); }
 
     public IntegerTopology()             { this(new Range.Set()); }
     public IntegerTopology(V v)          { this(v.toInt()); }