Same Double/Long cast issue as in IteratorGeneratorTag.

Now casting instanceof Double to a Double (not Long).

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@595363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Newton
2007-11-15 17:08:58 +00:00
parent 117d0bbb43
commit 60823c6582
@@ -224,7 +224,7 @@ public class SubsetIteratorTag extends StrutsBodyTagSupport {
count = ((Long)countObj).intValue();
}
else if (countObj instanceof Double) {
count = ((Long)countObj).intValue();
count = ((Double)countObj).intValue();
}
else if (countObj instanceof String) {
try {
@@ -250,7 +250,7 @@ public class SubsetIteratorTag extends StrutsBodyTagSupport {
start = ((Long)startObj).intValue();
}
else if (startObj instanceof Double) {
start = ((Long)startObj).intValue();
start = ((Double)startObj).intValue();
}
else if (startObj instanceof String) {
try {