ARTEMIS-1634 unintentional integer overflow

This commit is contained in:
Justin Bertram 2024-04-10 22:42:29 -05:00
parent 33599f7727
commit b2ffe9ff57
No known key found for this signature in database
GPG Key ID: F41830B875BB8633
1 changed files with 1 additions and 1 deletions

View File

@ -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);