From f8cbd9584041aa40a7469a66bee3011925c24cd7 Mon Sep 17 00:00:00 2001 From: QartemisT <63267788+QartemisT@users.noreply.github.com> Date: Sun, 28 Feb 2021 22:27:23 +0000 Subject: [PATCH] Whoopsie value. --- src/main/java/com/samskivert/depot/impl/FieldMarshaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java index 99faf14..722e8c5 100644 --- a/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java +++ b/src/main/java/com/samskivert/depot/impl/FieldMarshaller.java @@ -584,7 +584,7 @@ public abstract class FieldMarshaller if (value == null) { raw = null; } else { - ByteBuffer bbuf = ByteBuffer.allocate(value.length*4); + ByteBuffer bbuf = ByteBuffer.allocate(value.length*2); bbuf.asShortBuffer().put(value); raw = bbuf.array(); }