Skip to content

Commit 33c9d79

Browse files
committed
fixed compilation warning
1 parent 626d526 commit 33c9d79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JCMathLib/src/opencrypto/jcmathlib/ObjectLocker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ private void lock(Object objToLock, short lockIndex) {
237237
}
238238
if (PROFILE_LOCKED_OBJECTS) {
239239
// If enabled, check status of all other objects and mark these that are currently locked
240-
short profileLockOffset = (short) (lockIndex * (short) ((short) lockedObjects.length) / 2); // Obtain section of profileLockedObjects array relevant for current object
240+
short profileLockOffset = (short) (lockIndex * (short) ((short) lockedObjects.length / 2)); // Obtain section of profileLockedObjects array relevant for current object
241241

242242
for (short i = 0; i < (short) lockedObjects.length; i += 2) {
243243
if (lockedObjects[(short) (i + 1)] != null) {

0 commit comments

Comments
 (0)