accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmil...@apache.org
Subject [accumulo] branch master updated: Use literal long to prevent int multiplication
Date Tue, 12 Mar 2019 17:10:29 GMT
This is an automated email from the ASF dual-hosted git repository.

mmiller pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/master by this push:
     new dbfe04b  Use literal long to prevent int multiplication
dbfe04b is described below

commit dbfe04b446181be5688e57dd9960c79d7eeefe19
Author: Mike Miller <mmiller@apache.org>
AuthorDate: Tue Mar 12 11:51:39 2019 -0400

    Use literal long to prevent int multiplication
---
 .../java/org/apache/accumulo/core/file/rfile/MultiLevelIndex.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/file/rfile/MultiLevelIndex.java b/core/src/main/java/org/apache/accumulo/core/file/rfile/MultiLevelIndex.java
index 897f718..cee70d9 100644
--- a/core/src/main/java/org/apache/accumulo/core/file/rfile/MultiLevelIndex.java
+++ b/core/src/main/java/org/apache/accumulo/core/file/rfile/MultiLevelIndex.java
@@ -220,9 +220,9 @@ public class MultiLevelIndex {
 
     public long sizeInBytes() {
       if (offsets == null) {
-        return indexSize + 4 * numOffsets;
+        return indexSize + 4L * numOffsets;
       } else {
-        return data.length + 4 * offsets.length;
+        return data.length + 4L * offsets.length;
       }
     }
 


Mime
View raw message