ARTEMIS-1634 unintentional integer overflow
This commit is contained in:
parent
33599f7727
commit
b2ffe9ff57
|
@ -1696,7 +1696,7 @@ public class QueueControlImpl extends AbstractControl implements QueueControl {
|
|||
try {
|
||||
long index = 0;
|
||||
long start = (long) (page - 1) * pageSize;
|
||||
long end = Math.min(page * pageSize, queue.getMessageCount());
|
||||
long end = Math.min((long) page * pageSize, queue.getMessageCount());
|
||||
|
||||
ArrayList<CompositeData> c = new ArrayList<>();
|
||||
Filter thefilter = FilterImpl.createFilter(filter);
|
||||
|
|
Loading…
Reference in New Issue