From c2ce0a3179fc889b765af70120401085af21ff8f Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 8 Aug 2020 17:53:50 -0700 Subject: [PATCH] Added string reason for shift assertion failure --- core/src/com/riiablo/io/BitInput.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/riiablo/io/BitInput.java b/core/src/com/riiablo/io/BitInput.java index 8451098a..94453032 100644 --- a/core/src/com/riiablo/io/BitInput.java +++ b/core/src/com/riiablo/io/BitInput.java @@ -284,7 +284,7 @@ public class BitInput { if (bits <= 0) return 0; if (bits == Long.SIZE) return _readRaw(Long.SIZE); final int shift = Long.SIZE - bits; - assert shift > 0; + assert shift > 0 : "shift(" + shift + ") <= " + 0; final long value = readUnsigned(bits); return value << shift >> shift; }