From 7667cfdff2e91685538634cd24e7b863ef1dd1ff Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Tue, 18 Aug 2020 01:41:46 -0700 Subject: [PATCH] Fixed bug where readSafe64u was reading 32u --- core/src/com/riiablo/io/ByteInput.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/riiablo/io/ByteInput.java b/core/src/com/riiablo/io/ByteInput.java index f073b1cb..1976b66a 100644 --- a/core/src/com/riiablo/io/ByteInput.java +++ b/core/src/com/riiablo/io/ByteInput.java @@ -426,13 +426,13 @@ public class ByteInput { * * @throws UnsafeNarrowing if the read value is larger than 63 bits. * - * @see #read32u() + * @see #read64() */ public long readSafe64u() { assert aligned() : "not aligned"; try { - final long value = read32u(); // increments bits - return BitConstraints.safe32u(value); + final long value = read64(); // increments bits + return BitConstraints.safe64u(value); } catch (IndexOutOfBoundsException t) { throw new EndOfInput(t); }